Skip to content

erwinsmit/swa-jss

Repository files navigation

Sitecore JSS Next.js that can deploy to Azure Static Web Apps

This repo has some changes to the original Sitecore JSS Next.js that allow it to be deployed to Azure Static Web Apps.

Blob storage editing cache

Azure Static Web App now supports Next.js fully (With ISR/SSG), but some changes are necessary to the original JSS Next.js code to make it work.

The changes are done in the following files

The above files use a custom EditingDataCache. The files required for this custom EditingDataCache are all saved in the src/lib/editing

Everything else is the same as the official JSS Next.js SDK.

For this solution to work you'll need to provide create an Azure Storage Account with a pre-configured Blob Container. To allow the connection, create an .env file and set the values AZURE_STORAGE_CONNECTION_STRING & AZURE_BLOB_CONTAINER Accordingly*.

For more information, please refer to my blogpost

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published