mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +02:00
fix: env
This commit is contained in:
1 parent
5ab102ed55
commit
adf0aecd13
4 files changed
+3
-4
No files matched your search
@@ -31,4 +31,4 @@ jobs:
|
|||||||
unzip bot.zip -d dist/bot
|
unzip bot.zip -d dist/bot
|
||||||
|
|
||||||
- name: Run bot
|
- name: Run bot
|
||||||
run: mv dist/bot/prisma . && mv dist/bot/node_modules . && mv dist/bot/package.json . && GH_TOKEN=${{ secrets.GH_TOKEN }} DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }} DATABASE_URL=${{ secrets.DATABASE_URL }} NODE_ENV=production bun dist/bot/index.js --production
|
run: mv dist/bot/prisma . && mv dist/bot/node_modules . && mv dist/bot/package.json . && mv dist/bot/.env . && GH_TOKEN=${{ secrets.GH_TOKEN }} DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }} DATABASE_URL=${{ secrets.DATABASE_URL }} NODE_ENV=production bun dist/bot/index.js --production
|
||||||
+1
-1
@@ -7,7 +7,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build:assets": "bun scripts/buildAssets/index.ts",
|
"build:assets": "bun scripts/buildAssets/index.ts",
|
||||||
"build:averages": "bun scripts/averages",
|
"build:averages": "bun scripts/averages",
|
||||||
"build:bot": "rm -rf dist/bot && mkdir -p dist/bot/prisma && bun build src/index.ts src/workers/bot.ts src/workers/render.ts --outdir dist/bot --target=bun --splitting --sourcemap=inline --external sharp && cp -R src/lang dist/bot/lang && prisma generate && cp prisma/schema.prisma dist/bot/prisma/schema.prisma && cp -R node_modules/prisma/*.node dist/bot/prisma && cd dist/bot && bun init -y && bun add sharp",
|
"build:bot": "rm -rf dist/bot && mkdir -p dist/bot/prisma && bun build src/index.ts src/workers/bot.ts src/workers/render.ts --outdir dist/bot --target=bun --splitting --sourcemap=inline --external sharp && cp -R src/lang dist/bot/lang && prisma generate && cp prisma/schema.prisma dist/bot/prisma/schema.prisma && cp -R node_modules/prisma/*.node dist/bot/prisma && cp bot.env dist/bot/.env && cd dist/bot && bun init -y && bun add sharp",
|
||||||
"build:website": "bun build:sitemap && next build",
|
"build:website": "bun build:sitemap && next build",
|
||||||
"build:sitemap": "bun scripts/sitemap.ts",
|
"build:sitemap": "bun scripts/sitemap.ts",
|
||||||
"build:docs": "vitepress build docs",
|
"build:docs": "vitepress build docs",
|
||||||
|
|||||||
@@ -14,8 +14,6 @@ const devHostStartNames = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
export default function isDev() {
|
export default function isDev() {
|
||||||
if (process.argv.includes('--production')) return false;
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
process.env.NODE_ENV === 'development' ||
|
process.env.NODE_ENV === 'development' ||
|
||||||
process.env.VERCEL_ENV === 'preview' ||
|
process.env.VERCEL_ENV === 'preview' ||
|
||||||
|
|||||||
Reference in new issue
Block a user