saltyshiomix / nextron

⚡ Next.js + Electron ⚡
https://npm.im/nextron
MIT License
3.88k stars 223 forks source link

how nextjs13 adds a project prefix #402

Open CaiwenWang opened 1 year ago

CaiwenWang commented 1 year ago

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

bm777 commented 11 months 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',
}