-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
51cd861
commit 258fdaf
Showing
4 changed files
with
56 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,32 @@ | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = {}; | ||
|
||
export default nextConfig; | ||
const nextConfig = { | ||
async headers() { | ||
return [ | ||
{ | ||
// Apply these headers to all routes in your application | ||
source: '/(.*)', | ||
headers: [ | ||
{ | ||
key: 'Access-Control-Allow-Credentials', | ||
value: 'true', | ||
}, | ||
{ | ||
key: 'Access-Control-Allow-Origin', | ||
value: '*', // Replace with your allowed origin | ||
}, | ||
{ | ||
key: 'Access-Control-Allow-Methods', | ||
value: 'GET,OPTIONS,PATCH,DELETE,POST,PUT', | ||
}, | ||
{ | ||
key: 'Access-Control-Allow-Headers', | ||
value: 'X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version, Authorization', | ||
}, | ||
], | ||
}, | ||
]; | ||
}, | ||
}; | ||
|
||
export default nextConfig; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
|
||
import React from 'react'; | ||
|
||
const Home: React.FC = () => { | ||
|
||
return ( | ||
<div> | ||
<h1>Home</h1> | ||
</div> | ||
<> | ||
</> | ||
); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
const SignIn: React.FC = () => { | ||
return ( | ||
<> | ||
<h1>Sign In</h1> | ||
</> | ||
); | ||
} | ||
|
||
export default SignIn; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
const SignUp: React.FC = () => { | ||
return ( | ||
<> | ||
<h1>Sign Up</h1> | ||
</> | ||
); | ||
} | ||
|
||
export default SignUp; |