Skip to content

Commit be2d0a8

Browse files
committed
Refactor environment variable setup in restack_up.mjs
1 parent eaa3aba commit be2d0a8

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

Diff for: posthog/restack_up.mjs

+24-4
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,30 @@ const main = async () => {
2525
dockerBuildContext: "posthog",
2626
environmentVariables: [
2727
...restackEngineEnvs,
28-
...Object.keys(process.env).map((key) => ({
29-
name: key,
30-
value: process.env[key],
31-
})),
28+
{
29+
name: "POSTHOG_API_KEY",
30+
value: process.env.POSTHOG_API_KEY,
31+
},
32+
{
33+
name: "POSTHOG_PROJECT_ID",
34+
value: process.env.POSTHOG_PROJECT_ID,
35+
},
36+
{
37+
name: "POSTHOG_HOST",
38+
value: process.env.POSTHOG_HOST,
39+
},
40+
{
41+
name: "OPENAI_API_KEY",
42+
value: process.env.OPENAI_API_KEY,
43+
},
44+
{
45+
name: "LINEAR_API_KEY",
46+
value: process.env.LINEAR_API_KEY,
47+
},
48+
{
49+
name: "LINEAR_TEAM_ID",
50+
value: process.env.LINEAR_TEAM_ID,
51+
},
3252
],
3353
};
3454

0 commit comments

Comments
 (0)