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": {
|
"scripts": {
|
||||||
"build": "pnpm build:nodes && pnpm build:app",
|
"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:nodes": "pnpm -r --filter './nodes/**' build",
|
||||||
"build:stories": "pnpm -r --filter 'ui' story:build",
|
|
||||||
"dev:nodes": "pnpm -r --parallel --filter './nodes/**' dev",
|
"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"
|
"dev": "pnpm -r --filter 'app' --filter './packages/node-registry' dev"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@sveltejs/adapter-auto": "^3.0.0",
|
"@sveltejs/adapter-auto": "^3.0.0",
|
||||||
|
"@sveltejs/adapter-static": "^3.0.1",
|
||||||
"@sveltejs/kit": "^2.0.0",
|
"@sveltejs/kit": "^2.0.0",
|
||||||
"@sveltejs/package": "^2.0.0",
|
"@sveltejs/package": "^2.0.0",
|
||||||
"@sveltejs/vite-plugin-svelte": "^3.0.0",
|
"@sveltejs/vite-plugin-svelte": "^3.0.0",
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
import adapter from '@sveltejs/adapter-auto';
|
import adapter from '@sveltejs/adapter-static';
|
||||||
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
||||||
|
|
||||||
|
const { BASE_URL = "" } = process.env;
|
||||||
|
|
||||||
/** @type {import('@sveltejs/kit').Config} */
|
/** @type {import('@sveltejs/kit').Config} */
|
||||||
const config = {
|
const config = {
|
||||||
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
|
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
|
||||||
@ -8,6 +10,9 @@ const config = {
|
|||||||
preprocess: vitePreprocess(),
|
preprocess: vitePreprocess(),
|
||||||
|
|
||||||
kit: {
|
kit: {
|
||||||
|
paths: {
|
||||||
|
base: BASE_URL,
|
||||||
|
},
|
||||||
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
|
// 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.
|
// 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.
|
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
|
||||||
|
@ -127,6 +127,9 @@ importers:
|
|||||||
'@sveltejs/adapter-auto':
|
'@sveltejs/adapter-auto':
|
||||||
specifier: ^3.0.0
|
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)))
|
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':
|
'@sveltejs/kit':
|
||||||
specifier: ^2.0.0
|
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))
|
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:
|
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/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))':
|
'@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:
|
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))
|
'@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