Troubleshooting
Common problems and how to address them.
Dependency Updates
You may periodically need to run updates:
npm audit --fixnpm install kysely@latestnpx @astrojs/upgradeIf you’re not familiar with JS development, this can seem overwhelming. This is normal. Don’t be alarmed.
Common Issues
Build Errors
If npm run build fails:
- Check for TypeScript errors with
npx astro check - Ensure all dependencies are installed with
npm install - Check that your
.envfile has all required variables
Database Connection
If the app can’t connect to the database:
- Verify your database credentials in
.env - Make sure MySQL is running
- Check that the database exists and the user has proper permissions
Auth Issues
If authentication isn’t working:
- Verify
BETTER_AUTH_SECRETis set in.env - Check that the auth tables were created with
npm run init - For OAuth, ensure your provider credentials are configured correctly