This commit is contained in:
Benjamin Toby 2025-01-13 23:03:12 +01:00
parent 43e98d1565
commit 7a485da667
2 changed files with 40 additions and 7 deletions

View File

@ -29,16 +29,17 @@ fi
if [ -n "${NEXT_PUBLIC_DSQL_LOCAL}" ]; then if [ -n "${NEXT_PUBLIC_DSQL_LOCAL}" ]; then
if [[ "$DSQL_HOST_ENV" == *"dev_dev"* ]]; then if [[ "$DSQL_HOST_ENV" == *"dev_dev"* ]]; then
echo "NEXT_PUBLIC_DSQL_LOCAL is set in dev environment." echo "NEXT_PUBLIC_DSQL_LOCAL is set in dev environment."
batchrun # batchrun
bun dev
else else
echo "NEXT_PUBLIC_DSQL_LOCAL is set. Running Local initialization ..." echo "NEXT_PUBLIC_DSQL_LOCAL is set. Running Local initialization ..."
# bun /app/docker-root-user-init.ts # bun /app/docker-root-user-init.ts
if [[ $? == 0 ]]; then # if [[ $? == 0 ]]; then
echo "First User Setup Complete" # echo "First User Setup Complete"
else # else
echo "First User Setup Failed!. Exiting ..." # echo "First User Setup Failed!. Exiting ..."
exit 1 # exit 1
fi # fi
# bun /app/package-shared/shell/mariadb-users/refreshUsersAndGrants.ts # bun /app/package-shared/shell/mariadb-users/refreshUsersAndGrants.ts
bun server.ts bun server.ts
fi fi

32
dsql-app/tsconfig.json Normal file
View File

@ -0,0 +1,32 @@
{
"compilerOptions": {
"target": "ES2017",
"paths": {
"@/*": ["./*"]
},
"maxNodeModuleJsDepth": 5,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true,
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"noEmit": true,
"incremental": true,
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"moduleResolution": "node",
"module": "ESNext"
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "next.config.js"],
"exclude": [
"node_modules",
"dump",
".next",
".tmp",
"apiKeys",
"less",
"public"
]
}