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
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "next"
}
6 changes: 6 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'export',
};

export default nextConfig;
12 changes: 9 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,19 @@
"scripts": {
"dev": "next",
"build": "next build",
"start": "next start -H 0.0.0.0",
"start-localhost": "next start"
"export": "next export",
"start": "next start -H 0.0.0.0 -p $PORT",
"start-localhost": "next start",
"lint": "npx next lint"
},
"dependencies": {
"next": "^11.1.1",
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"license": "ISC"
"license": "ISC",
"devDependencies": {
"eslint": "^7.23.0",
"eslint-config-next": "^11.1.1"
}
}
2 changes: 1 addition & 1 deletion pages/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Link from 'next/link'
const Index = () => (
<div>
Hello World.{' '}
HOLA MUNDO - Hello World.{' '}
<Link href="/about">
<a>About</a>
</Link>
Expand Down
32 changes: 16 additions & 16 deletions render.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
# services:
# - type: web
# name: next-js
# env: node
# plan: starter
# buildCommand: yarn; yarn build
# startCommand: yarn start
# autoDeploy: true
# envVars:
# - key: NODE_ENV
# value: production
services:
- type: web
name: next-js
env: node
plan: starter
buildCommand: yarn; yarn build
startCommand: yarn start
autoDeploy: false
name: nextjs-static
env: static
buildCommand: yarn; yarn build; yarn next export
staticPublishPath: out
pullRequestPreviewsEnabled: true # optional
envVars:
- key: NODE_ENV
value: production
# Uncomment the following to deploy this app as a static site on render
# - type: web
# name: nextjs-static
# env: static
# buildCommand: yarn; yarn build; yarn next export
# staticPublishPath: out
# pullRequestPreviewsEnabled: true # optional
# envVars:
# - key: NODE_ENV
# value: production

Loading