Skip to content

Commit 613612c

Browse files
committed
test new experimental options
1 parent b89c286 commit 613612c

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

references/v3-catalog/src/trigger/binaries.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,14 @@ function unzip(inputPath: string, outputPath: string) {
4343

4444
import { createClient } from "@1password/sdk";
4545

46-
// Creates an authenticated client.
47-
const client = await createClient({
48-
auth: process.env.OP_SERVICE_ACCOUNT_TOKEN ?? "",
49-
// Set the following to your own integration name and version.
50-
integrationName: "My 1Password Integration",
51-
integrationVersion: "v1.0.0",
52-
});
46+
function create1PasswordClient() {
47+
return createClient({
48+
auth: process.env.OP_SERVICE_ACCOUNT_TOKEN ?? "",
49+
// Set the following to your own integration name and version.
50+
integrationName: "My 1Password Integration",
51+
integrationVersion: "v1.0.0",
52+
});
53+
}
5354

5455
// Fetches a secret.
5556
// const secret = await client.secrets.resolve("op://vault/item/field");

references/v3-catalog/trigger.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ export default defineConfig({
3232
build: {
3333
conditions: ["react-server"],
3434
experimental_autoDetectExternal: true,
35+
experimental_keepNames: true,
36+
experimental_minify: true,
3537
extensions: [
3638
additionalFiles({
3739
files: ["./wrangler/wrangler.toml"],

0 commit comments

Comments
 (0)