Module

x/aleph/types.ts>Config

The Full-stack Framework in Deno.
Go to Latest
interface Config
import { type Config } from "https://dotland.deno.dev/x/aleph@v0.2.24/types.ts";

Config for Aleph.js application.

Properties

optional
srcDir: string

srcDir to put your application source code (default is '/').

optional
outputDir: string

outputDir specifies the output directory for build command (default is 'dist').

optional
baseUrl: string

baseUrl specifies the path prefix for the application (default is '/').

optional
reactUrl: string

reactUrl specifies the react download URL (default is 'https://esm.sh/react@16.14.0').

optional
reactDomUrl: string

reactDomUrl specifies the react-dom download URL (default is 'https://esm.sh/react-dom@16.14.0').

optional
defaultLocale: string

defaultLocale specifies the default locale of the application (default is 'en').

optional
locales: string[]

A list of locales.

optional
ssr: boolean | SSROptions

The options for SSR.

optional
plugins: Plugin[]

A list of plugin.

optional
postcss: { plugins: (string | { name: string; options: Record<string, any>; })[]; }

A list of plugin of PostCSS.

optional
buildTarget: string

buildTarget specifies the build target for tsc (possible values: 'ES2015' - 'ES2020' | 'ESNext', default is ES2015 for production and ES2018 for development).

optional
sourceMap: boolean

Enable sourceMap in production mode (default is false).

optional
env: Record<string, string>

env appends env variables (use Deno.env.get(key) to get an env variable)