Open CaiwenWang opened 1 year ago
@CaiwenWang I don't if I get your point, you mean to add a project prefix (using the analogy of next.js 13)?
To add a project prefix in Next.js 13,
you can utilize the basePath config option in your next.config.js
or nextron.config.js
file. This option allows you to set a path prefix for your application. For instance, to use /docs as a prefix, you would configure your next.config.js
or nextron.config.js
file as follows:
module.exports = {
basePath: '/docs',
}
May I ask how nextjs13 adds a project prefix (Access nextjs13 project A through the prefix "/projectA/" ,Accessing nextjs13 project B through the prefix "/projectB/"), How will nginx be configured