* Implement a more robust Config This moves the configuration variables from the `.env` file to a new `bewcloud.config.ts` file. Note that DB connection and secrets are still in the `.env` file. This will allow for more reliable and easier personalized configurations, and was a requirement to start working on adding SSO (#13). For now, `.env`-based config will still be allowed and respected (overriden by `bewcloud.config.ts`), but in the future I'll probably remove it (some major upgrade). * Update deploy script to also copy the new config file
15 lines
300 B
TypeScript
15 lines
300 B
TypeScript
import { defineConfig } from 'fresh/server.ts';
|
|
import tailwind from 'fresh/plugins/tailwind.ts';
|
|
|
|
import { startCrons } from '/crons/index.ts';
|
|
|
|
const isBuildMode = Deno.args.includes('build');
|
|
|
|
if (!isBuildMode) {
|
|
await startCrons();
|
|
}
|
|
|
|
export default defineConfig({
|
|
plugins: [tailwind()],
|
|
});
|