Skip to content

Commit

Permalink
try deploying tanstack start on the edge
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Nov 20, 2024
1 parent 0e8d517 commit 234b08b
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 3 deletions.
30 changes: 30 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tanstack-start/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import {defineConfig} from '@tanstack/start/config'

export default defineConfig({
server: {
preset: 'vercel',
preset: 'vercel-edge',
},
})
4 changes: 3 additions & 1 deletion tanstack-start/app/routes/__root.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {Outlet, ScrollRestoration, createRootRoute} from '@tanstack/react-router'
import {createRootRoute, Outlet, ScrollRestoration} from '@tanstack/react-router'
import {TanStackRouterDevtools} from '@tanstack/router-devtools'
import {Meta, Scripts} from '@tanstack/start'
import type {ReactNode} from 'react'

Expand All @@ -24,6 +25,7 @@ function RootComponent() {
return (
<RootDocument>
<Outlet />
<TanStackRouterDevtools />
</RootDocument>
)
}
Expand Down
2 changes: 1 addition & 1 deletion tanstack-start/count.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
12
22
1 change: 1 addition & 0 deletions tanstack-start/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
},
"dependencies": {
"@tanstack/react-router": "^1.82.1",
"@tanstack/router-devtools": "^1.82.1",
"@tanstack/start": "^1.82.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
Expand Down

0 comments on commit 234b08b

Please sign in to comment.