Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permissions-Policy header in next.config.mjs causes Missing pattern at 7 TypeError #332

Open
grefrit opened this issue Dec 13, 2023 · 0 comments

Comments

@grefrit
Copy link

grefrit commented Dec 13, 2023

Try to add Permissions-Policy to next.config.mjs with camera=(), microphone=(), geolocation=() value. You will see

Invoke Error    {
  "errorType": "TypeError",
  "errorMessage": "Missing pattern at 7",
  "stack": [
    "TypeError: Missing pattern at 7",
    "    at n8e (file:///var/task/index.mjs:42:242011)",
    "    at aO (file:///var/task/index.mjs:42:242248)",
    "    at r8e (file:///var/task/index.mjs:42:243214)",
    "    at file:///var/task/index.mjs:50:3232",
    "    at Array.forEach (<anonymous>)",
    "    at Y7 (file:///var/task/index.mjs:50:3158)",
    "    at nee (file:///var/task/index.mjs:50:10193)",
    "    at iee (file:///var/task/index.mjs:50:12077)",
    "    at Runtime.handler (file:///var/task/server-index.mjs:15:10)"
  ]
}

is SST console

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant