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
7bfd26ff
Commit
7bfd26ff
authored
Jun 08, 2022
by
Moorthy G
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: setup proxy for api
parent
8f9dcdc3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
.env.sample
.env.sample
+1
-1
next.config.js
next.config.js
+4
-0
No files found.
.env.sample
View file @
7bfd26ff
NEXT_PUBLIC_API_URL=http
s://smarten-spaces-testing.eu-staging.kacdn.net
NEXT_PUBLIC_API_URL=http
://localhost/api
next.config.js
View file @
7bfd26ff
...
...
@@ -30,6 +30,10 @@ module.exports = {
{
source
:
'/'
,
destination
:
'/home'
},
{
source
:
'/api/:path*'
,
destination
:
`
${
process
.
env
.
NEXT_PUBLIC_API_URL
}
/:path*`
}
];
},
...
...
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