Skip to content

Update rollup config to target workerd and browsers#41

Merged
andrew-propelauth merged 3 commits intoPropelAuth:mainfrom
Amar-Gill:fix-cf-pages
Jun 4, 2024
Merged

Update rollup config to target workerd and browsers#41
andrew-propelauth merged 3 commits intoPropelAuth:mainfrom
Amar-Gill:fix-cf-pages

Conversation

@Amar-Gill
Copy link
Copy Markdown
Contributor

Update rollup.config to target browsers / CF workers runtime. This was copied from the deprecated https://github.com/PropelAuth/cloudflare-worker/blob/main/rollup.config.js package.

I tested this by installing my forked version of the package in my app and deploying it to CF pages. I was able to initialize the auth library on backend as required.

Without these changes I got the following error:

Error initializing auth library. Unable to import public key

Copy link
Copy Markdown
Contributor

@pfvatterott pfvatterott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested. LGTM!

@andrew-propelauth andrew-propelauth merged commit 41b659c into PropelAuth:main Jun 4, 2024
@Amar-Gill Amar-Gill deleted the fix-cf-pages branch June 8, 2024 00:56
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

Successfully merging this pull request may close these issues.

3 participants