Replies: 1 comment
-
Yes, there is no @tanstack/react-start/config, but I found the @tanstack/react-start-config package. Unfortunately, an error will be reported when starting. I don’t know what to do now. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Noob question here, sorry in advance.
I created an application with Tanstack start. I am having trouble shipping it through a Dockerfile, especially:
1 - Lack of explanation on the build files
I run
vite build && tsc --noEmit
to build static files. This generates multiple directories (.output
,.nitro
,.tanstack
). It is unclear how those directories work together, and how I can serve them using a minimal Docker image:node .output/server/index.mjs
orvite start
).2 - Is hosting documentation up-to-date ?
I looked at hosting with node-server, as it seemed the most appropriate option. However:
defineConfig
from"@tanstack/react-start/config"
(which does not appear to exist anymore, and newest examples in the docs suggest to directly use vite).preset: 'node-server'
option is not recognized by vite, so it is unclear how to build for that particular targetConclusion
Can the documentation about hosting be updated with the latest changes ?
Also, I believe providing a Dockerfile example can be useful, as it is a generic, provider-agnostic hosting solution (and it also helps when developping locally).
Next has a Dockerfile example: https://github.com/vercel/next.js/blob/canary/examples/with-docker/Dockerfile, could something similar be done on the router repository ?
Beta Was this translation helpful? Give feedback.
All reactions