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

move to sops for prod secrets #790

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

move to sops for prod secrets #790

wants to merge 2 commits into from

Conversation

tarasglek
Copy link
Owner

@tarasglek tarasglek commented Jan 20, 2025

per #769
Need to figure out how to get past

✘ [ERROR] Expected ";" but found "with"

    functions/secrets.ts:2:46:
      2 │ import production_json from "production.json" with { type: "json" };

Copy link

cloudflare-workers-and-pages bot commented Jan 20, 2025

Deploying chatcraft-org with  Cloudflare Pages  Cloudflare Pages

Latest commit: 93a69ad
Status: ✅  Deploy successful!
Preview URL: https://ed265b70.console-overthinker-dev.pages.dev
Branch Preview URL: https://taras-sops.console-overthinker-dev.pages.dev

View logs

@tarasglek
Copy link
Owner Author

tarasglek commented Jan 20, 2025

I don't understand, cos "resolveJsonModule": true is set in tsconfig. @humphd help pls

@humphd
Copy link
Collaborator

humphd commented Jan 20, 2025

My guess is that you have to tell wrangler about this, see https://developers.cloudflare.com/workers/wrangler/configuration/#bundling

@humphd
Copy link
Collaborator

humphd commented Jan 20, 2025

I guess wrangler doesn't support JSON modules?

https://developers.cloudflare.com/workers/wrangler/bundling/

Copy link
Collaborator

@humphd humphd left a comment

Choose a reason for hiding this comment

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

Neat. One small thing, looks good otherwise.

secretKey: AGE_SECRET_KEY,
});
}
throw new Error("Unknown environmentp");
Copy link
Collaborator

Choose a reason for hiding this comment

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

typo

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.

2 participants