Skip to content

cambios #54

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

cambios #54

wants to merge 5 commits into from

Conversation

magiabinaria
Copy link

chidos

magiabinaria and others added 5 commits March 5, 2023 15:29
…dency warnings.

I added ESLint with `eslint-config-next` to improve code quality and catch potential errors.
I also created `.eslintrc.json` with default Next.js configuration and added a `lint` script to `package.json`.
Finally, I ensured the project builds successfully without warnings after these changes.
I modified the `start` script in `package.json` to include `-p $PORT`.
This ensures that your Next.js application uses the `PORT` environment
variable provided by Render.com, resolving the "Not Found" error on deployment.
Here's what I did:
- I modified `render.yaml` to use the static site service type.
  - The build command is now `yarn; yarn build; yarn next export`.
  - I set `staticPublishPath` to `out`.
- I created `next.config.mjs` and set `output: 'export'` to enable static HTML export.
- For completeness, I added an `export` script (`next export`) to `package.json`.

This should align with your project's documentation for deploying to Render as a static site and hopefully resolve the persistent 404 errors you were experiencing with the Node web service configuration.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant