-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
mwdev
committed
Mar 3, 2023
1 parent
6a0c9b1
commit 0c9c70d
Showing
6 changed files
with
167 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
OPENAI_API_KEY= | ||
OPENAI_API_KEY= | ||
|
||
# 如官方地址服务访问可配置反向代理 | ||
OPENAI_API_URL=https://api.openai.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,21 @@ | ||
import { defineConfig } from 'astro/config' | ||
import vercel from '@astrojs/vercel/edge' | ||
import unocss from 'unocss/astro' | ||
import { presetUno } from 'unocss' | ||
import presetAttributify from '@unocss/preset-attributify' | ||
import presetTypography from '@unocss/preset-typography' | ||
import solidJs from '@astrojs/solid-js' | ||
import { defineConfig } from 'astro/config'; | ||
import vercel from '@astrojs/vercel/edge'; | ||
import unocss from 'unocss/astro'; | ||
import { presetUno } from 'unocss'; | ||
import presetAttributify from '@unocss/preset-attributify'; | ||
import presetTypography from '@unocss/preset-typography'; | ||
import solidJs from '@astrojs/solid-js'; | ||
|
||
// https://astro.build/config | ||
import node from "@astrojs/node"; | ||
|
||
// https://astro.build/config | ||
export default defineConfig({ | ||
integrations: [ | ||
unocss({ | ||
presets: [ | ||
presetAttributify(), | ||
presetUno(), | ||
presetTypography(), | ||
] | ||
}), | ||
solidJs() | ||
], | ||
integrations: [unocss({ | ||
presets: [presetAttributify(), presetUno(), presetTypography()] | ||
}), solidJs()], | ||
output: 'server', | ||
adapter: vercel() | ||
adapter: node({ | ||
mode: "standalone" | ||
}) | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: '3' | ||
services: | ||
app: | ||
image: node:18 | ||
restart: always | ||
ports: | ||
- "9002:3000" | ||
volumes: | ||
- .:/app | ||
entrypoint: bash -c "cd /app && HOST=0.0.0.0 PORT=3000 node ./dist/server/entry.mjs" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters