Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback


The next-gen web framework.
Extremely Popular
Go to Latest
interface RouteConfig
import { type RouteConfig } from "";


routeOverride: string

A route override for the page. This is useful for pages where the route can not be expressed through the filesystem routing capabilities.

The route override must be a path-to-regexp compatible route matcher.

csp: boolean

If Content-Security-Policy should be enabled for this page. If 'true', a locked down policy will be used that allows only the scripts and styles that are generated by fresh. Additional scripts and styles can be added using the useCSP hook.