Skip to content

Commit

Permalink
fix: fix i18n and config modules
Browse files Browse the repository at this point in the history
  • Loading branch information
aralroca committed Oct 4, 2023
1 parent 37035ee commit 059029d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: Learn how to use Middleware to run code before a request is complet

Middleware allows you to run code before a request is completed. Then, based on the incoming request, you can modify the response by rewriting, redirecting, modifying the request or response headers, or responding directly.

Middleware runs before routes are matched. See [Matching Paths](#matching-paths) for more details.
Middleware runs before routes are matched.

## Convention

Expand Down
Empty file added src/cli/serve.test.tsx
Empty file.
4 changes: 2 additions & 2 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ const rootDir = getRootDir();
const srcDir = getRootDir("development");
const PAGE_404 = "/_404";
const PAGE_500 = "/_500";
const I18N_CONFIG = await importFileIfExists("i18n", rootDir);
const I18N_CONFIG = (await importFileIfExists("i18n", rootDir))?.default;
const CONFIG_DIR = path.join(srcDir, "..");
const CONFIG = (await importFileIfExists("brisa.config", CONFIG_DIR)) ?? {};
const CONFIG = (await importFileIfExists("brisa.config", CONFIG_DIR))?.default ?? {};

const defaultConfig = {
trailingSlash: false,
Expand Down

0 comments on commit 059029d

Please sign in to comment.