fix: build erorr
All checks were successful
Deploy to GitHub Pages / build_site (push) Successful in 1m48s
All checks were successful
Deploy to GitHub Pages / build_site (push) Successful in 1m48s
This commit is contained in:
parent
c5a270f67a
commit
8bf2958e1d
@ -1,11 +1,10 @@
|
||||
{
|
||||
"scripts": {
|
||||
"build": "pnpm build:nodes && pnpm build:app",
|
||||
"build:app": "pnpm -r --filter 'ui' build && pnpm -r --filter 'app' build",
|
||||
"build:app": "BASE_PATH=/ui pnpm -r --filter 'ui' build && pnpm -r --filter 'app' build",
|
||||
"build:nodes": "pnpm -r --filter './nodes/**' build",
|
||||
"build:stories": "pnpm -r --filter 'ui' story:build",
|
||||
"dev:nodes": "pnpm -r --parallel --filter './nodes/**' dev",
|
||||
"build:deploy": "pnpm build && pnpm build:stories && cp -r ./packages/ui/.histoire/dist ./app/build/ui",
|
||||
"build:deploy": "pnpm build && cp -r ./packages/ui/build ./app/build/ui",
|
||||
"dev": "pnpm -r --filter 'app' --filter './packages/node-registry' dev"
|
||||
}
|
||||
}
|
||||
|
@ -32,6 +32,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@sveltejs/adapter-auto": "^3.0.0",
|
||||
"@sveltejs/adapter-static": "^3.0.1",
|
||||
"@sveltejs/kit": "^2.0.0",
|
||||
"@sveltejs/package": "^2.0.0",
|
||||
"@sveltejs/vite-plugin-svelte": "^3.0.0",
|
||||
|
@ -1,18 +1,23 @@
|
||||
import adapter from '@sveltejs/adapter-auto';
|
||||
import adapter from '@sveltejs/adapter-static';
|
||||
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
||||
|
||||
const { BASE_URL = "" } = process.env;
|
||||
|
||||
/** @type {import('@sveltejs/kit').Config} */
|
||||
const config = {
|
||||
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
|
||||
// for more information about preprocessors
|
||||
preprocess: vitePreprocess(),
|
||||
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
|
||||
// for more information about preprocessors
|
||||
preprocess: vitePreprocess(),
|
||||
|
||||
kit: {
|
||||
// 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.
|
||||
adapter: adapter()
|
||||
}
|
||||
kit: {
|
||||
paths: {
|
||||
base: BASE_URL,
|
||||
},
|
||||
// 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.
|
||||
adapter: adapter()
|
||||
}
|
||||
};
|
||||
|
||||
export default config;
|
||||
|
@ -127,6 +127,9 @@ importers:
|
||||
'@sveltejs/adapter-auto':
|
||||
specifier: ^3.0.0
|
||||
version: 3.2.0(@sveltejs/kit@2.5.7(@sveltejs/vite-plugin-svelte@3.1.0(svelte@5.0.0-next.118)(vite@5.2.10(@types/node@20.12.7)(sass@1.75.0)))(svelte@5.0.0-next.118)(vite@5.2.10(@types/node@20.12.7)(sass@1.75.0)))
|
||||
'@sveltejs/adapter-static':
|
||||
specifier: ^3.0.1
|
||||
version: 3.0.1(@sveltejs/kit@2.5.7(@sveltejs/vite-plugin-svelte@3.1.0(svelte@5.0.0-next.118)(vite@5.2.10(@types/node@20.12.7)(sass@1.75.0)))(svelte@5.0.0-next.118)(vite@5.2.10(@types/node@20.12.7)(sass@1.75.0)))
|
||||
'@sveltejs/kit':
|
||||
specifier: ^2.0.0
|
||||
version: 2.5.7(@sveltejs/vite-plugin-svelte@3.1.0(svelte@5.0.0-next.118)(vite@5.2.10(@types/node@20.12.7)(sass@1.75.0)))(svelte@5.0.0-next.118)(vite@5.2.10(@types/node@20.12.7)(sass@1.75.0))
|
||||
@ -2863,6 +2866,10 @@ snapshots:
|
||||
dependencies:
|
||||
'@sveltejs/kit': 2.5.7(@sveltejs/vite-plugin-svelte@3.0.0-next.3(svelte@5.0.0-next.118)(vite@5.2.10(@types/node@20.12.7)(sass@1.75.0)))(svelte@5.0.0-next.118)(vite@5.2.10(@types/node@20.12.7)(sass@1.75.0))
|
||||
|
||||
'@sveltejs/adapter-static@3.0.1(@sveltejs/kit@2.5.7(@sveltejs/vite-plugin-svelte@3.1.0(svelte@5.0.0-next.118)(vite@5.2.10(@types/node@20.12.7)(sass@1.75.0)))(svelte@5.0.0-next.118)(vite@5.2.10(@types/node@20.12.7)(sass@1.75.0)))':
|
||||
dependencies:
|
||||
'@sveltejs/kit': 2.5.7(@sveltejs/vite-plugin-svelte@3.1.0(svelte@5.0.0-next.118)(vite@5.2.10(@types/node@20.12.7)(sass@1.75.0)))(svelte@5.0.0-next.118)(vite@5.2.10(@types/node@20.12.7)(sass@1.75.0))
|
||||
|
||||
'@sveltejs/kit@2.5.7(@sveltejs/vite-plugin-svelte@3.0.0-next.3(svelte@5.0.0-next.118)(vite@5.2.10(@types/node@20.12.7)(sass@1.75.0)))(svelte@5.0.0-next.118)(vite@5.2.10(@types/node@20.12.7)(sass@1.75.0))':
|
||||
dependencies:
|
||||
'@sveltejs/vite-plugin-svelte': 3.0.0-next.3(svelte@5.0.0-next.118)(vite@5.2.10(@types/node@20.12.7)(sass@1.75.0))
|
||||
|
Loading…
Reference in New Issue
Block a user