NextJS site not getting deployed when having multi-site options
See original GitHub issueIssue: trying to get a next.js site deployed to firebase hosting when having 2 sites configured.
"hosting": [
{
"target": "web",
"public": "apps/web/public",
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
},
{
"target": "app",
"source": "apps/app/.",
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
],
Error received:
Error: An unexpected error has occurred
I am using lerna for monorepo approach and the nextjs app is inside app
package. This approach works when there is only one site to deploy but fails in multi-site hosting when we add the target
attribute.
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:10
Top Results From Across the Web
How to configure multisite in Sitecore Next.js application?
This depends entirely on your requirements. Separate applications would enable you to develop, deploy, and scale sites independently.
Read more >How to deploy next.js webapp with firebase multi site ...
i tried to deploy a next.js app using firebase multi site hosting but i am not able to understand what the folder structure...
Read more >Advanced Features: Multi Zones
A zone is a single deployment of a Next.js app. You can have multiple zones and merge them as a single app. For...
Read more >How to Build a Multi-Tenant App with Custom Domains ...
Create a full-stack application with multi-tenancy and custom domain support using Next.js, Prisma, PlanetScale, and Tailwind CSS.
Read more >Multisite support for Sitecore JSS – Next.js using Vercel's ...
If you have a look at the Sitecore Nextjs SDK and/or the starter templates, you'll notice that there is no support for multi-site, ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Def pathing issues, I’ll put together a fix for an upcoming firebase-tools release.
Ah that’s helpful thanks.