S
SolidJSā€¢4w 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
w4lkerā€¢4w ago
No description
brenelz
brenelzā€¢4w ago
You need to add preset: vercel
w4lker
w4lkerā€¢4w ago
so?
No description
brenelz
brenelzā€¢4w ago
That looks right
REEEEE
REEEEEā€¢4w ago
it should be inside server not start
w4lker
w4lkerā€¢4w 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ā€¢4w ago
remove the custom output directory, preset: "vercel" generates a build output api compatible folder
w4lker
w4lkerā€¢4w ago
thanks for aswer, but not works @Brendonovich
w4lker
w4lkerā€¢4w 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
w4lkerā€¢4w ago
i config " .output/public" cause in the build log i saw this ... [success] [vinxi] Generated public .output/public
Brendonovich
Brendonovichā€¢4w 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
w4lkerā€¢4w 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ā€¢2w 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
Want results from more Discord servers?
Add your server
More Posts