Skip to main content
Module

x/aleph/types.ts>Config

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

Config for Aleph.js

Properties

optional
srcDir: string

srcDir to put all your app pages, app.tsx, etc directories (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 url (default is 'https://esm.sh/react@16.14.0')

optional
reactDomUrl: string

reactDomUrl specifies the react-dom 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

Option for SSR

optional
buildTarget: string

buildTarget specifies the build taget 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 defines the Window.ALEPH.ENV object in the application