web search done right
need svelte-kit tsconfig
Mikkel Denkerf70dee9e98ce
diff --git a/core/src/api/mod.rs b/core/src/api/mod.rsindex 15bb088e..bf03763e 100644--- a/core/src/api/mod.rs+++ b/core/src/api/mod.rs@@ -182,7 +182,7 @@ pub async fn router(config: &ApiConfig, counters: Counters) -> Result<Router> {.with_state(state))}-/// Enables CORS for development where the API and Deno frontend are on+/// Enables CORS for development where the API and frontend are on/// different hosts.fn cors_layer() -> tower_http::cors::CorsLayer {#[cfg(feature = "cors")]diff --git a/frontend/.svelte-kit/tsconfig.json b/frontend/.svelte-kit/tsconfig.jsonnew file mode 100644index 00000000..d5b888f0--- /dev/null+++ b/frontend/.svelte-kit/tsconfig.json@@ -0,0 +1,46 @@+{+ "compilerOptions": {+ "paths": {+ "$lib": [+ "../src/lib"+ ],+ "$lib/*": [+ "../src/lib/*"+ ]+ },+ "rootDirs": [+ "..",+ "./types"+ ],+ "importsNotUsedAsValues": "error",+ "isolatedModules": true,+ "preserveValueImports": true,+ "lib": [+ "esnext",+ "DOM",+ "DOM.Iterable"+ ],+ "moduleResolution": "node",+ "module": "esnext",+ "target": "esnext",+ "ignoreDeprecations": "5.0"+ },+ "include": [+ "ambient.d.ts",+ "./types/**/$types.d.ts",+ "../vite.config.ts",+ "../src/**/*.js",+ "../src/**/*.ts",+ "../src/**/*.svelte",+ "../tests/**/*.js",+ "../tests/**/*.ts",+ "../tests/**/*.svelte"+ ],+ "exclude": [+ "../node_modules/**",+ "./[!ambient.d.ts]**",+ "../src/service-worker.js",+ "../src/service-worker.ts",+ "../src/service-worker.d.ts"+ ]+}\ No newline at end of filediff --git a/frontend/svelte.config.js b/frontend/svelte.config.jsindex 7609bf55..91ee6927 100644--- a/frontend/svelte.config.js+++ b/frontend/svelte.config.js@@ -18,6 +18,9 @@ const config = {}),kit: {+ csrf: {+ checkOrigin: false,+ },// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.// If your environment is not supported or you settled on a specific environment, switch out the adapter.// See https://kit.svelte.dev/docs/adapters for more information about adapters.