docs: server folder #3777
Answered
by
pi0
meirlamdan
asked this question in
Q&A
docs: server folder
#3777
-
|
Why is it not mentioned in the documentation when adding nitro to an existing vite project You need to put everything in a main import { defineConfig } from "nitro";
export default defineConfig({
serverDir: "./server",
});Or did I misunderstand?? |
Beta Was this translation helpful? Give feedback.
Answered by
pi0
Nov 10, 2025
Replies: 1 comment
-
|
You can either use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
meirlamdan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can either use
serverDir(to enable filsystem routing) orroutes: {}config to declare routes in config. We need to reflect this to docs now after alpha.1 👍🏼