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 [[ "$DSQL_HOST_ENV" == *"dev_dev"* ]]; then
echo "NEXT_PUBLIC_DSQL_LOCAL is set in dev environment."
batchrun
# batchrun
bun dev
else
echo "NEXT_PUBLIC_DSQL_LOCAL is set. Running Local initialization ..."
# bun /app/docker-root-user-init.ts
if [[ $? == 0 ]]; then
echo "First User Setup Complete"
else
echo "First User Setup Failed!. Exiting ..."
exit 1
fi
# if [[ $? == 0 ]]; then
# echo "First User Setup Complete"
# else
# echo "First User Setup Failed!. Exiting ..."
# exit 1
# fi
# bun /app/package-shared/shell/mariadb-users/refreshUsersAndGrants.ts
bun server.ts
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"
]
}