Skip to content
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

update nextjs to v12 #133

Merged
merged 2 commits into from Oct 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/pull-request.yml
@@ -0,0 +1,37 @@
name: validade pull request

on:
pull_request:
branches:
- 'develop'
- 'main'
tags-ignore:
- '*.*'

jobs:
check:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Use Node.js 14.x
uses: actions/setup-node@v1
with:
node-version: 14.x

- name: Node.js modules cache
uses: actions/cache@v2
id: restore-cache
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}

- name: Install Node.js dependencies
run: npm ci
if: steps.restore-cache.outputs.cache-hit != 'true'

- name: Run the PR check
run: npm run pullrequest --if-present
env:
CI: true
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -19,6 +19,7 @@
.DS_Store
*.pem
.husky
tsconfig.tsbuildinfo

# debug
npm-debug.log*
Expand Down
10 changes: 1 addition & 9 deletions README.md
Expand Up @@ -46,15 +46,7 @@ You can check out [the Next.js GitHub repository](https://github.com/vercel/next

- [Next.js](https://nextjs.org/)

- [Next.js v11.1](https://nextjs.org/blog/next-11-1)

- [Next.js v11](https://nextjs.org/blog/next-11)

- [Next.js v10.1](https://nextjs.org/blog/next-10-1)

- [Webpack 5 Adoption](https://nextjs.org/docs/messages/webpack5)

- [Next.js v10](https://nextjs.org/blog/next-10)
- [Next.js v12](https://nextjs.org/blog/next-12)

- [Create a Next.js App](https://nextjs.org/learn/basics/create-nextjs-app)

Expand Down
1 change: 1 addition & 0 deletions next.config.js
Expand Up @@ -19,6 +19,7 @@ const basePath = isProduction ? `/${package.name}` : '';
* @type {import('next').NextConfig}
**/
const nextConfig = {
swcMinify: true,
trailingSlash: true,
reactStrictMode: true,
basePath,
Expand Down