-
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.
Migrado para next 15, migrado para app router, migrado para login com…
… JWT e removido sessão, salvando token no cookie
- Loading branch information
Showing
28 changed files
with
5,772 additions
and
3,783 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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
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
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
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
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,5 +1,6 @@ | ||
{ | ||
"compilerOptions": { | ||
"jsx": "react", | ||
"paths": { | ||
"@/*": ["./src/*"] | ||
} | ||
|
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,31 +1,31 @@ | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = { | ||
reactStrictMode: true, | ||
output: "standalone", | ||
assetPrefix: process.env.ASSET_PREFIX || undefined, | ||
webpack: (config,options) => { | ||
// Solve compiling problem via vagrant | ||
config.watchOptions = { | ||
poll: 1000, // Check for changes every second | ||
aggregateTimeout: 300, // delay before rebuilding | ||
ignored: ['**/node_modules','**/.git','**/.next'], | ||
}; | ||
return config; | ||
} | ||
} | ||
|
||
// Testes apenas | ||
if(process.env.NODE_ENV === "development") { | ||
nextConfig.rewrites = async () => { | ||
return { | ||
fallback: [ | ||
{ | ||
source: "/backend/:path*", | ||
destination: `${process.env.SERVERSIDE_API_URL}/:path*`, | ||
}, | ||
], | ||
}; | ||
}; | ||
} | ||
|
||
module.exports = nextConfig | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = { | ||
reactStrictMode: true, | ||
output: "standalone", | ||
assetPrefix: process.env.ASSET_PREFIX || undefined, | ||
webpack: (config,options) => { | ||
// Solve compiling problem via vagrant | ||
config.watchOptions = { | ||
poll: 1000, // Check for changes every second | ||
aggregateTimeout: 300, // delay before rebuilding | ||
ignored: ['**/node_modules','**/.git','**/.next'], | ||
}; | ||
return config; | ||
} | ||
} | ||
|
||
// Testes apenas | ||
if(process.env.NODE_ENV === "development") { | ||
nextConfig.rewrites = async () => { | ||
return { | ||
fallback: [ | ||
{ | ||
source: "/backend/:path*", | ||
destination: `${process.env.SERVERSIDE_API_URL}/:path*`, | ||
}, | ||
], | ||
}; | ||
}; | ||
} | ||
|
||
module.exports = nextConfig |
Oops, something went wrong.