Next.js Discord

Discord Forum

vercel just wont deploy

Unanswered
Alaska pollock posted this in #help-forum
Open in Discord
Alaska pollockOP
i've tried everything.

my vercel.json:
{ "version": 2, "rewrites": [{ "source": "/(.*)", "destination": "/" }] }

my index.js:
const express = require("express");
const app = express();

app.get("/", (req, res) => res.send("Express on Vercel"));

app.listen(3000, () => console.log("Server ready on port 3000."));

module.exports = app;

in the .vercel.app page it shows the code for index.js.

6 Replies

Spectacled bear
What is the error you're facing?
@Spectacled bear What is the error you're facing?
Alaska pollockOP
in the .vercel.app page it shows the code for index.js.
like it displays the code for index.js only
@Alaska pollock in the .vercel.app page it shows the code for index.js.
Spectacled bear
Were you able to deploy your site to vercel?
Masai Lion
Index js isn’t a visual page it’s not going to deploy just code I don’t believe
I could be wrong