Skip to content

Commit

Permalink
fix: migrate turborepo2 env
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Jun 11, 2024
1 parent 5fc9f67 commit 7fb9067
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
8 changes: 2 additions & 6 deletions packages/app/astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,10 @@ import Analytics from 'unplugin-analytics/astro';
const SSR_ADAPTER = process.env.SSR_ADAPTER === 'cloudflare' ? 'cloudflare' : 'node';

const APP_HOST = process.env.APP_HOST ?? `garden.onekuma.cn`;
const SERVER_HOST = process.env.SERVER_HOST ?? `api.zeabur.internal`;
const SERVER_PORT = process.env.SERVER_PORT ?? `8080`;
const SERVER_HOST = process.env.SERVER_HOST;
const SERVER_PORT = process.env.SERVER_PORT;
const SERVER_PROTOCOL = process.env.SERVER_PROTOCOL ?? 'http'; // http or https

console.log(`ENV:`, process.env);

console.log(`BUILD:`, SERVER_HOST, SERVER_PORT, SERVER_PROTOCOL);

// Analytics Engines
const UMAMI_HOST = `umami.onekuma.cn`;
const UMAMI_ID = `a8602a4a-8d41-4df7-9797-5bd074785f2c`;
Expand Down
8 changes: 7 additions & 1 deletion turbo.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
{
"$schema": "https://turborepo.org/schema.json",
"globalEnv": [
"APP_HOST",
"SERVER_PROTOCOL",
"SERVER_HOST",
"SERVER_PORT"
],
"tasks": {
"build": {
"dependsOn": [
Expand Down Expand Up @@ -38,4 +44,4 @@
"cache": false
}
}
}
}

0 comments on commit 7fb9067

Please sign in to comment.