Skip to content
Snippets Groups Projects
Commit 0dc7cd34 authored by Hangzhi Yu's avatar Hangzhi Yu
Browse files

Tell SW to ignore oauth authorization page

parent 74dac7ac
No related branches found
No related tags found
1 merge request!1282Resolve "OAuth views shadowed by service worker"
Pipeline #135262 failed
......@@ -14,6 +14,7 @@ Fixed
* Notifications were not properly shown in the frontend.
* When navigating from legacy to legacy page, the latter would reload once for no reason.
* The oauth authorization page was not accessible when the service worker was active.
`3.1.1` - 2023-07-01
--------------------
......
......@@ -201,7 +201,7 @@ export default defineConfig({
navigateFallback: "/",
directoryIndex: null,
navigateFallbackAllowlist: [
new RegExp("^/(?!(django|admin|graphql|__icons__))[^.]*$"),
new RegExp("^/(?!(django|admin|graphql|__icons__|oauth/authorize))[^.]*$"),
],
additionalManifestEntries: [
{ url: "/", revision: crypto.randomUUID() },
......@@ -215,7 +215,7 @@ export default defineConfig({
runtimeCaching: [
{
urlPattern: new RegExp(
"^/(?!(django|admin|graphql|__icons__))[^.]*$"
"^/(?!(django|admin|graphql|__icons__|oauth/authorize))[^.]*$"
),
handler: "CacheFirst",
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment