Skip to content

Commit

Permalink
fix astro check comamnd
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusmarminge committed Jan 4, 2025
1 parent 67d2cff commit a053dd3
Show file tree
Hide file tree
Showing 4 changed files with 429 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/src/app/(docs)/getting-started/astro/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ const routerConfig = extractRouterConfig(uploadRouter);
(globalThis as any).__UPLOADTHING ??= routerConfig;
---
<script define:vars={{ routerConfig }}>
<script define:vars={{ routerConfig }} is:inline>
/**
* Injecting config to the client. This prevents the client from fetching
* the configuration from the server, since we already have it.
Expand Down
6 changes: 4 additions & 2 deletions examples/minimal-astro-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"build": "astro build",
"preview": "astro preview",
"astro": "astro",
"typecheck": "tsc --noEmit"
"typecheck": "astro check"
},
"dependencies": {
"@astrojs/node": "^9.0.0",
Expand All @@ -20,7 +20,9 @@
"uploadthing": "7.4.4"
},
"devDependencies": {
"@astrojs/check": "0.9.4",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0"
"@types/react-dom": "18.3.0",
"typescript": "5.7.2"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const routerConfig = extractRouterConfig(uploadRouter);
(globalThis as any).__UPLOADTHING ??= routerConfig;
---

<script define:vars={{ routerConfig }}>
<script define:vars={{ routerConfig }} is:inline>
/**
* This prevents the client from fetching the
* configuration from the server, since we already have it.
Expand Down
Loading

0 comments on commit a053dd3

Please sign in to comment.