Skip to content

Commit

Permalink
refactor(next): remove PROJECT_ROOT variable
Browse files Browse the repository at this point in the history
  • Loading branch information
filipedeschamps committed Jul 21, 2022
1 parent d8ab63e commit 9de7d36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
7 changes: 3 additions & 4 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@ module.exports = {
eslint: {
ignoreDuringBuilds: true,
},
experimental: { nftTracing: true },
experimental: {
nftTracing: true,
},
compiler: {
styledComponents: true,
},
i18n: {
locales: ['pt-br'],
defaultLocale: 'pt-br',
},
serverRuntimeConfig: {
PROJECT_ROOT: __dirname,
},
};
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const { join, resolve } = require('path');
import { renderToStaticMarkup } from 'react-dom/server';
import { renderAsync } from '@resvg/resvg-js';
import getConfig from 'next/config';
import nextConnect from 'next-connect';
import { renderTemplate } from './_lib/template';
import { parseContent } from './_lib/parser';
Expand Down

0 comments on commit 9de7d36

Please sign in to comment.