Move to @/next package
This commit is contained in:
parent
8d571a0f52
commit
3e9538f59e
6 changed files with 18 additions and 16 deletions
|
@ -1,4 +1,4 @@
|
|||
const nextConfigBase = require('@ente/shared/next/next.config.base.js');
|
||||
const nextConfigBase = require('@/next/next.config.base.js');
|
||||
|
||||
module.exports = {
|
||||
...nextConfigBase,
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
const nextConfigBase = require('@ente/shared/next/next.config.base.js');
|
||||
const nextConfigBase = require('@/next/next.config.base.js');
|
||||
|
||||
module.exports = nextConfigBase;
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
const nextConfigBase = require('@ente/shared/next/next.config.base.js');
|
||||
const nextConfigBase = require('@/next/next.config.base.js');
|
||||
|
||||
module.exports = nextConfigBase;
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
const nextConfigBase = require('@ente/shared/next/next.config.base.js');
|
||||
const nextConfigBase = require('@/next/next.config.base.js');
|
||||
|
||||
module.exports = nextConfigBase;
|
||||
|
|
|
@ -3,4 +3,6 @@ module.exports = {
|
|||
parserOptions: {
|
||||
tsconfigRootDir: __dirname,
|
||||
},
|
||||
// TODO (MR): Figure out a way to not have to ignored the next config .js
|
||||
ignorePatterns: [".eslintrc.js", "next.config.base.js"],
|
||||
};
|
||||
|
|
|
@ -10,13 +10,13 @@
|
|||
* https://nextjs.org/docs/pages/api-reference/next-config-js
|
||||
*/
|
||||
|
||||
const { withSentryConfig } = require('@sentry/nextjs');
|
||||
const cp = require('child_process');
|
||||
const { withSentryConfig } = require("@sentry/nextjs");
|
||||
const cp = require("child_process");
|
||||
|
||||
const gitSHA = cp
|
||||
.execSync('git rev-parse --short HEAD', {
|
||||
.execSync("git rev-parse --short HEAD", {
|
||||
cwd: __dirname,
|
||||
encoding: 'utf8',
|
||||
encoding: "utf8",
|
||||
})
|
||||
.trimEnd();
|
||||
|
||||
|
@ -24,21 +24,21 @@ const gitSHA = cp
|
|||
* The base Next.js config. Before exporting this, we wrap this in
|
||||
* {@link withSentryConfig}.
|
||||
*
|
||||
* @type {import('next').NextConfig}
|
||||
* @type {import("next").NextConfig}
|
||||
*/
|
||||
const nextConfig = {
|
||||
/* generate a static export when we run `next build` */
|
||||
output: 'export',
|
||||
output: "export",
|
||||
compiler: {
|
||||
emotion: true,
|
||||
},
|
||||
transpilePackages: [
|
||||
'@/next',
|
||||
'@/ui',
|
||||
'@/utils',
|
||||
'@mui/material',
|
||||
'@mui/system',
|
||||
'@mui/icons-material',
|
||||
"@/next",
|
||||
"@/ui",
|
||||
"@/utils",
|
||||
"@mui/material",
|
||||
"@mui/system",
|
||||
"@mui/icons-material",
|
||||
],
|
||||
|
||||
// Add environment variables to the JavaScript bundle. They will be
|
Loading…
Add table
Reference in a new issue