Setting your application configuration
Learn how to setup the overall settings of your Remix Supabase application
The application configuration is set at apps/web/config/app.config.ts
. This configuration stores some overall variables for your application.
This configuration is set at application-level. The configuration gets propagated to the packages that the app imports, so you can control the behavior and logic of the package. This also allows you to host multiple apps in the same monorepo, as every application defines its own configuration.
The recomendation is to not update this directly - instead, please define the environment variables below and override the default behavior. The configuration is validated using the Zod schema AppConfigSchema
, so if something is off, you'll see the errors.
const appConfig = AppConfigSchema.parse({ name: import.meta.env.VITE_PRODUCT_NAME, title: import.meta.env.VITE_SITE_TITLE, description: import.meta.env.VITE_SITE_DESCRIPTION, url: import.meta.env.VITE_SITE_URL, locale: import.meta.env.VITE_DEFAULT_LOCALE, theme: import.meta.env.VITE_DEFAULT_THEME_MODE, themeColor: import.meta.env.VITE_THEME_COLOR, themeColorDark: import.meta.env.VITE_THEME_COLOR_DARK, production,});
For example, to set the product name and app URL, you'd update the variables:
VITE_SITE_URL=https://myapp.comVITE_PRODUCT_NAME="My wonderful AI App"