Skip to content

Commit cc04263

Browse files
committed
fix(demo): use demo.* in permissive COEP rule (valid route source)
The demo(/.*)? form introduced a nested capturing group, which Next's path-to-regexp route-source parser rejects ('Capturing groups are not allowed'), failing the build. demo.* mirrors the strict-rule lookahead's demo prefix without a nested group, matching the existing w/.* style.
1 parent eba8ecc commit cc04263

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/sim/next.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ const nextConfig: NextConfig = {
222222
},
223223
{
224224
// For main app routes, Google Drive Picker, the /demo Cal.com embed, and Vercel resources - use permissive policies
225-
source: '/(w/.*|workspace/.*|api/tools/drive|demo(/.*)?|_next/.*|_vercel/.*)',
225+
source: '/(w/.*|workspace/.*|api/tools/drive|demo.*|_next/.*|_vercel/.*)',
226226
headers: [
227227
{
228228
key: 'Cross-Origin-Embedder-Policy',

0 commit comments

Comments
 (0)