Skip to content

Commit

Permalink
feat: add path alias
Browse files Browse the repository at this point in the history
  • Loading branch information
bbtgnn committed Feb 25, 2024
1 parent c687ea2 commit 1867e9b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { TObject } from '@sinclair/typebox';
// // import type { StaticDecode } from '@sinclair/typebox';
// import { Effect as _, ReadonlyRecord as R, pipe, ReadonlyArray as A } from 'effect';

import get_entries_loaders from '../routes/(collections)';
import get_entries_loaders from '$collections';

export { get_entries_loaders };

Expand Down
4 changes: 4 additions & 0 deletions svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ const config = {

paths: {
base: process.argv.includes('dev') ? '' : process.env.REPO_NAME
},

alias: {
$collections: './src/routes/(collections)'
}
}
};
Expand Down

0 comments on commit 1867e9b

Please sign in to comment.