Start search page + Add i18n & generation base

This commit is contained in:
venashial
2022-05-08 13:03:01 -07:00
parent e553f1fdbd
commit b0a55c9b18
16 changed files with 1062 additions and 178 deletions

View File

@@ -1,6 +1,7 @@
import adapter from '@sveltejs/adapter-static';
import path from "path";
import { preprocess, plugins } from 'omorphia/config/svelte.config'
import precompileIntl from "svelte-intl-precompile/sveltekit-plugin";
/** @type {import('@sveltejs/kit').Config} */
const config = {
@@ -12,6 +13,7 @@ const config = {
vite: {
plugins: [
...plugins,
precompileIntl('locales'),
],
resolve: {
alias: {
@@ -21,9 +23,15 @@ const config = {
$lib: path.resolve('./src/lib'),
$stores: path.resolve('./src/stores'),
$styles: path.resolve('./src/styles'),
$generated: path.resolve('./src/generated'),
$generated: path.resolve('./generated'),
},
},
server: {
fs: {
// Allow serving files from one level up to the project root
allow: ['..', './generated/*.json'],
}
}
}
}
};