Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nextjs-starter-template
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Moorthy G
nextjs-starter-template
Commits
27c1ee6d
Commit
27c1ee6d
authored
May 16, 2023
by
Moorthy G
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor(next.config): update next config file
parent
dba49b13
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
+7
-11
next.config.js
next.config.js
+7
-11
No files found.
next.config.js
View file @
27c1ee6d
module
.
exports
=
{
module
.
exports
=
{
experimental
:
{
appDir
:
true
},
images
:
{
images
:
{
domains
:
[
''
],
remotePatterns
:
[
deviceSizes
:
[
128
,
384
],
{
imageSizes
:
[
640
,
828
,
1200
,
1600
,
1920
,
2048
]
protocol
:
'https'
,
hostname
:
's3-ap-southeast-1.amazonaws.com'
}
],
imageSizes
:
[
64
,
128
,
256
,
576
,
768
,
992
,
1200
,
1600
,
1920
,
2048
,
3840
]
},
},
webpack
:
(
config
,
{
isServer
})
=>
{
webpack
:
(
config
,
{
isServer
})
=>
{
if
(
process
.
env
.
ANALYZE
&&
!
isServer
)
{
if
(
process
.
env
.
ANALYZE
&&
!
isServer
)
{
...
@@ -21,18 +24,11 @@ module.exports = {
...
@@ -21,18 +24,11 @@ module.exports = {
async
rewrites
()
{
async
rewrites
()
{
return
[
return
[
{
{
source
:
'/'
,
destination
:
'/home'
},
{
source
:
'/api/:path*'
,
source
:
'/api/:path*'
,
destination
:
`
${
process
.
env
.
NEXT_PUBLIC_API_URL
}
/:path*`
destination
:
`
${
process
.
env
.
NEXT_PUBLIC_API_URL
}
/:path*`
}
}
];
];
},
},
env
:
{
homeUrl
:
'/home'
},
poweredByHeader
:
false
,
poweredByHeader
:
false
,
compress
:
false
compress
:
false
};
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment