diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..4e9619e --- /dev/null +++ b/.env.example @@ -0,0 +1,13 @@ +NODE_ENV=development +NEXT_PUBLIC_LOG_LEVEL=info +NEXT_PUBLIC_302_WEBSITE_URL_GLOBAL=https://302.ai +NEXT_PUBLIC_302_WEBSITE_URL_CHINA=https://302.ai +NEXT_PUBLIC_302_API_KEY=your_302_api_key +NEXT_PUBLIC_API_URL=http://localhost:3000 +NEXT_PUBLIC_AUTH_API_URL=http://localhost:3000 +NEXT_PUBLIC_AUTH_PATH=/auth +NEXT_PUBLIC_IS_CHINA=false +NEXT_PUBLIC_DEFAULT_LOCALE=en +NEXT_PUBLIC_DEFAULT_MODEL_NAME=gpt-4.1-mini +NEXT_PUBLIC_DEV_HOST_NAME=localhost +NEXT_PUBLIC_HIDE_BRAND=false diff --git a/.github/workflows/envdrift.yml b/.github/workflows/envdrift.yml new file mode 100644 index 0000000..e4d8073 --- /dev/null +++ b/.github/workflows/envdrift.yml @@ -0,0 +1,19 @@ +name: Env Drift + +on: + pull_request: + push: + branches: [main] + +jobs: + envdrift: + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + - name: Check .env.example drift (src) + run: npx -y github:jszzr/envdrift#v0.1.0 . --example .env.example --include src