S
SolidJSā€¢8mo ago
w4lker

404 in deployment with Vercel

I am trying to implement in Vercel and I can't, I configured defineConfig but nothing, here I leave images for more information.
No description
13 Replies
w4lker
w4lkerOPā€¢8mo ago
No description
brenelz
brenelzā€¢8mo ago
You need to add preset: vercel
w4lker
w4lkerOPā€¢8mo ago
so?
No description
brenelz
brenelzā€¢8mo ago
That looks right
REEEEE
REEEEEā€¢8mo ago
it should be inside server not start
w4lker
w4lkerOPā€¢8mo ago
import { defineConfig } from "@solidjs/start/config";

export default defineConfig({
server: { preset: "vercel" },
});

import { defineConfig } from "@solidjs/start/config";

export default defineConfig({
server: { preset: "vercel" },
});

nothing šŸ˜¢
Brendonovich
Brendonovichā€¢8mo ago
remove the custom output directory, preset: "vercel" generates a build output api compatible folder
w4lker
w4lkerOPā€¢8mo ago
thanks for aswer, but not works @Brendonovich
w4lker
w4lkerOPā€¢8mo ago
āš™ Preparing app for node-server...
[success] [vinxi] Generated public .output/public
[info] [vinxi] Building Nitro Server (preset: `node-server`)
[success] [vinxi] Nitro Server built
[success] [vinxi] You can preview this build using `node .output/server/index.mjs`
Build Completed in /vercel/output [14s]
Deploying outputs...
Injected preview comments middleware, you can disable this in your project settings.
Deployment completed
Uploading build cache [23.92 MB]...
Build cache uploaded: 479.771ms
āš™ Preparing app for node-server...
[success] [vinxi] Generated public .output/public
[info] [vinxi] Building Nitro Server (preset: `node-server`)
[success] [vinxi] Nitro Server built
[success] [vinxi] You can preview this build using `node .output/server/index.mjs`
Build Completed in /vercel/output [14s]
Deploying outputs...
Injected preview comments middleware, you can disable this in your project settings.
Deployment completed
Uploading build cache [23.92 MB]...
Build cache uploaded: 479.771ms
w4lker
w4lkerOPā€¢8mo ago
i config " .output/public" cause in the build log i saw this ... [success] [vinxi] Generated public .output/public
Brendonovich
Brendonovichā€¢8mo ago
I think some logs are missing The public folder is only one part of your app, not the whole thing All that you need is this + the start 1.0 preset
w4lker
w4lkerOPā€¢8mo ago
I discovered that it is not the configurations, it is something with my project my gooooood, was name file, i have vite.config.ts and now is app.config.ts...
PlutoUranus
PlutoUranusā€¢7mo ago
The solution: add server: {preset: "vercel"} inside your app.config.ts https://stackoverflow.com/questions/76219797/404-not-found-error-on-solidjs-project-deployed-to-vercel

Did you find this page helpful?