Skip to content

Commit 5b4b076

Browse files
Nextjs upgrade v9 to v12 (#128)
* upgrade to next@10. no breaking changes * add .env to gitignore * next 10 - 12, plugin additions * configure new module transpile for 3rd party css * next types update * remove redundant pragma * update types for react reactdom too
1 parent 1a88fa4 commit 5b4b076

File tree

6 files changed

+13919
-4782
lines changed

6 files changed

+13919
-4782
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,5 @@ yarn-error.log*
3232

3333
# vercel
3434
.vercel
35+
36+
.env

components/theme/typography.ts

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
*
2020
*/
2121

22-
// /** @jsx jsx */ import { css } from '@emotion/core';
2322
import { css } from '@emotion/core';
2423

2524
const baseFont = css`

next-env.d.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/// <reference types="next" />
2-
/// <reference types="next/types/global" />
2+
/// <reference types="next/image-types/global" />
33

4-
declare module 'url-join';
5-
declare module 'js-cookie';
6-
declare module 'jsonwebtoken';
4+
// NOTE: This file should not be edited
5+
// see https://nextjs.org/docs/basic-features/typescript for more information.

next.config.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
const withCSS = require('@zeit/next-css');
1+
const withTM = require('next-transpile-modules')(['@arranger/components', 'react-spinkit']);
2+
const withPlugins = require('next-compose-plugins');
23

3-
module.exports = withCSS({
4+
module.exports = withPlugins([withTM], {
45
publicRuntimeConfig: {
56
NEXT_PUBLIC_EGO_API_ROOT: process.env.NEXT_PUBLIC_EGO_API_ROOT,
67
NEXT_PUBLIC_EGO_CLIENT_ID: process.env.NEXT_PUBLIC_EGO_CLIENT_ID,

0 commit comments

Comments
 (0)