Skip to content

Commit

Permalink
Merge pull request #133 from erkobridee/update/nextjs
Browse files Browse the repository at this point in the history
update nextjs to v12
  • Loading branch information
erkobridee committed Oct 27, 2021
2 parents df62d40 + 677ae77 commit 42e0bf1
Show file tree
Hide file tree
Showing 7 changed files with 623 additions and 877 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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

0 comments on commit 42e0bf1

Please sign in to comment.