storybook-eol / storybook-deployer

Deploy your storybook as a static site
MIT License
892 stars 71 forks source link

[Bug] Running into CSP issues when deploying to gh pages #97

Open shanswami opened 3 years ago

shanswami commented 3 years ago

Describe the bug

We have a custom build structure - "build-storybook": "build-storybook -s local-dir",

but when deploying we run into this error on our GitHub pages instance. EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self' 'unsafe-inline'".

we've recently updated to storybook v 6 and have verified that the local instance of storybook is working perfectly.

Screenshots and/or logs

image

doshprompt commented 3 years ago

+1