Questions tagged [vercel]
For software-development questions about Vercel, a frontend cloud deployment platform.
vercel
2,199
questions with no upvoted or accepted answers
15
votes
1
answer
881
views
Running a Node script after deployment?
Is there a post-deploy hook or any other way to run a Node script after deployment on Vercel?
15
votes
2
answers
6k
views
Why Vercel function log does not show console.log?
I see this for server method generatePostAnimation
basically no log lines.
I have many console.log like this:
console.log('Képek betöltve')
What do I miss?
https://vercel.com/support/articles/where-...
9
votes
1
answer
3k
views
Can Turbopack be used outside NextJs?
Since it's apparently very fast, It would be nice if it could be used outside for multiple projects like Vite. Couldn't find much information about it on their website https://turbo.build/pack
Went to ...
9
votes
3
answers
7k
views
NextJs Next.config.mjs import local constant file
Importing local files in next.config
The issue
Hi, The issue we are facing is wanting to create a dynamic next config. This works fine when we do not import any files but when trying to import a ...
9
votes
0
answers
2k
views
Cookies is not saved in the browser even when server sends set-cookie using VERCEL
I have two VERCEL servers running.
One is for server and second for client.
Server is running NODE -> express -> express-sessions.
Client is running Svelte with fetch api.
My server is setting ...
9
votes
1
answer
1k
views
Next.js getServerSideProps (throw Error) results in 404 instead of 500
I have very basic setup, of getServerSideProps with Sentry error logging in Production on Vercel
export const getServerSideProps = async () => {
// some api call
if(error) {
throw new Error(&...
8
votes
0
answers
1k
views
Typescript errors in NextJS when deploying to Vercel but not when running build or lint locally
Firstly, there are some questions on SO with similar titles but I don't believe this is a duplicate as I thin it's a recent change to a package or vercel causing it.
I upgraded some packages in an app ...
8
votes
0
answers
1k
views
Access full Next.js errors in production deployment
I'm debugging a tricky issue that only occurs with a Next.js project when in production/deployed to Vercel. Minification is interfering in my ability to debug the issue since issues are reported as:
...
8
votes
2
answers
2k
views
github workflow only on deployment_status AND specific branch
Similar tho this question How to run Github Actions with the 'deployment_status' kitty and only on the QAS branch?
I want to execute a workflow only on a specific branch but combined with the ...
8
votes
0
answers
827
views
Vercel 504 Bad Gateway Error Page though code works in dev mode
So I have built a Next app based on this NextJS example which means I have GraphQL routes and an Apollo server I use to fetch from the API in the app. The example shows how to fetch in getStaticProps()...
8
votes
0
answers
808
views
Get notified a vercel build and/or deployment has completed
I am using a deploy hook from my headless CMS (prismic) to kick off a build and deploy on my vercel hosted statically rendered nextJS site. The build time is variable, and I need to run a script after ...
8
votes
0
answers
4k
views
Implement next js Optional catch all routes without deleting index.js
How can I implement Next js feature Catch all routes [[...slug.tsx]] (https://nextjs.org/docs/routing/dynamic-routes#optional-catch-all-routes) without deleting the index.js page? If I don't delete it,...
8
votes
3
answers
20k
views
Deploying React app to production returns "You need to enable JavaScript to run this app"
Problem
I have an axios call at "/artists", that gets a list of artists returned as an array of JSON. It works in development. However, in production it outputs an HTML element that says You ...
7
votes
0
answers
798
views
How to pass arguments to filtered workspaces separately using Turborepo?
My use case is, I have two workspaces say foo and bar, and I want to pass the different command line args, is it possible to achieve such functionality with Turborepo.
I want to do something like this:...
7
votes
1
answer
3k
views
Use fileSystem on an API Route with NextJS deployed on Vercel
I need to use fileStystem methods as readdirSync on an API Route in NextJS. It works locally but when deployed on Vercel, the request responds with a 500 status code.
This is Vercel's Funcion Logs:
...