ixartz / Next-js-Boilerplate

🚀🎉📚 Boilerplate and Starter for Next.js 14+ with App Router and Page Router support, Tailwind CSS 3.4 and TypeScript ⚡️ Made with developer experience first: Next.js + TypeScript + ESLint + Prettier + Husky + Lint-Staged + Jest + Testing Library + Cypress + Storybook + Commitlint + VSCode + Netlify + PostCSS + Tailwind CSS

Home Page:https://nextjs-boilerplate.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deploy on Vercel

OlivierGuntenaar opened this issue · comments

I've encountered an issue with the one-click deploy feature on Vercel. When I try to use it, I end up with an empty repository on my personal GitHub account. Below are the screenshots of the process:

Attempting One-Click Deploy

Screenshot 2023-07-07 at 23 07 50

Resulting Empty Repository

Screenshot 2023-07-07 at 23 02 21 Screenshot 2023-07-07 at 23 03 07

As a workaround, I tried copying the template to my git like so:

Copying Template to Git

Screenshot 2023-07-07 at 23 01 11

However, this results in the framework preset being set to "Other":

Framework Preset Set to Other

Screenshot 2023-07-07 at 23 10 43

According to the Vercel documentation, it's possible to override the Framework Preset for a specific deployment by adding a framework to the vercel.json configuration.

Should we add this file to the repository to resolve the issue? I would appreciate any guidance or assistance on this matter.

@OlivierGuntenaar, Thank you for reporting this issue. It's expected to automatically set the correct preset and not setting to "Other". This is not normal. Especially the project uses Next.js (built by vercel team)

Creating vercel.json can be a solution but it doesn't explain the root cause.

Not sure, but the error can be coming from this line: https://github.com/ixartz/Next-js-Boilerplate/blob/main/package.json#L27. It's because there is a post build step which cause the error?