-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wich is the right publish-dir path to Nextjs? #832
Comments
Could you show me the source? |
That is my full .yml file name: ci
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout repository!
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: ^14.19.1
- name: Install dependencies
run: yarn --frozen-lockfile
- name: Run Jest tests
run: yarn test
- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v1.2
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
with:
publish-dir: './public'
production-branch: main
production-deploy: true
timeout-minutes: 2 |
Thanks. The yaml doesn't seem to contain a build process. You need |
I think there are a few issues here.
Having said that, I tried using this Github action to produce the Next.js runtime and it doesn't seem to be respecting it. Not sure if there is an option to include the build flag as a part of the process. The equivalent command using Netlify Actions would be |
I see most projects use three dirs for nextjs, e.g. https://github.com/leerob/next-self-host/blob/main/Dockerfile#L20 Also, the build step from https://github.com/netlify-templates/next-platform-starter plus this action with
|
I'm trying to deploy my app on Netlify, There is no problem during the deploy, but I don't know the right publish-dir to can see my home page.
The text was updated successfully, but these errors were encountered: