diff --git a/astro.config.mjs b/astro.config.mjs index d55582c..eba0dba 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -4,7 +4,6 @@ import react from '@astrojs/react'; import sitemap from '@astrojs/sitemap'; import pkgs from './package.json'; import tailwindcss from '@tailwindcss/vite'; - const isDev = process.env.NODE_ENV === 'development'; let target = process.env.VITE_API_URL || 'https://localhost:51015'; @@ -16,17 +15,22 @@ let proxy = { '/api': apiProxy, }; +const basename = isDev ? undefined : `${pkgs.basename}`; export default defineConfig({ - base: isDev ? undefined : pkgs.basename, + base: basename, integrations: [ mdx(), react(), // // sitemap(), // sitemap must be site has a domain ], - + vite: { plugins: [tailwindcss()], + define: { + basename: JSON.stringify(basename || ''), + }, server: { + https: true, port: 7008, host: '0.0.0.0', allowedHosts: true, diff --git a/package.json b/package.json index 4fb94cd..f6fe47c 100644 --- a/package.json +++ b/package.json @@ -23,12 +23,12 @@ "@kevisual/query-login": "^0.0.6", "@kevisual/registry": "^0.0.1", "@tailwindcss/vite": "^4.1.14", - "astro": "^5.14.4", + "astro": "^5.14.5", "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", "dayjs": "^1.11.18", "lodash-es": "^4.17.21", - "lucide-react": "^0.545.0", + "lucide-react": "^0.546.0", "nanoid": "^5.1.6", "react": "^19.2.0", "react-dom": "^19.2.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ee097bd..6d90a88 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -10,7 +10,7 @@ importers: dependencies: '@astrojs/mdx': specifier: ^4.3.7 - version: 4.3.7(astro@5.14.4(@types/node@24.7.2)(idb-keyval@6.2.2)(jiti@2.6.1)(lightningcss@1.30.1)(rollup@4.52.4)(typescript@5.9.3)) + version: 4.3.7(astro@5.14.5(@types/node@24.7.2)(idb-keyval@6.2.2)(jiti@2.6.1)(lightningcss@1.30.1)(rollup@4.52.4)(typescript@5.9.3)) '@astrojs/react': specifier: ^4.4.0 version: 4.4.0(@types/node@24.7.2)(@types/react-dom@19.2.2(@types/react@19.2.2))(@types/react@19.2.2)(jiti@2.6.1)(lightningcss@1.30.1)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) @@ -30,8 +30,8 @@ importers: specifier: ^4.1.14 version: 4.1.14(vite@6.3.6(@types/node@24.7.2)(jiti@2.6.1)(lightningcss@1.30.1)) astro: - specifier: ^5.14.4 - version: 5.14.4(@types/node@24.7.2)(idb-keyval@6.2.2)(jiti@2.6.1)(lightningcss@1.30.1)(rollup@4.52.4)(typescript@5.9.3) + specifier: ^5.14.5 + version: 5.14.5(@types/node@24.7.2)(idb-keyval@6.2.2)(jiti@2.6.1)(lightningcss@1.30.1)(rollup@4.52.4)(typescript@5.9.3) class-variance-authority: specifier: ^0.7.1 version: 0.7.1 @@ -45,8 +45,8 @@ importers: specifier: ^4.17.21 version: 4.17.21 lucide-react: - specifier: ^0.545.0 - version: 0.545.0(react@19.2.0) + specifier: ^0.546.0 + version: 0.546.0(react@19.2.0) nanoid: specifier: ^5.1.6 version: 5.1.6 @@ -966,8 +966,8 @@ packages: resolution: {integrity: sha512-LElXdjswlqjWrPpJFg1Fx4wpkOCxj1TDHlSV4PlaRxHGWko024xICaa97ZkMfs6DRKlCguiAI+rbXv5GWwXIkg==} hasBin: true - astro@5.14.4: - resolution: {integrity: sha512-yqgMAO2Whi9GmZkByyiPcG7CiiPr0Me0iBSorMa6M0g+wQk/ewnIqUyr7T/uFCPTQndoKwucnYFTrf0yfb0urw==} + astro@5.14.5: + resolution: {integrity: sha512-EHt7y3+nHYyKzBats1AL3N4Pyrvqyr+zXBC7njUa9Tfe+gsiHlunaw+lXitTT/DDVwO2R/f/qVG7Xc6rl0b2KQ==} engines: {node: 18.20.8 || ^20.3.0 || >=22.0.0, npm: '>=9.6.5', pnpm: '>=7.1.0'} hasBin: true @@ -1510,8 +1510,8 @@ packages: peerDependencies: react: ^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0 - lucide-react@0.545.0: - resolution: {integrity: sha512-7r1/yUuflQDSt4f1bpn5ZAocyIxcTyVyBBChSVtBKn5M+392cPmI5YJMWOJKk/HUWGm5wg83chlAZtCcGbEZtw==} + lucide-react@0.546.0: + resolution: {integrity: sha512-Z94u6fKT43lKeYHiVyvyR8fT7pwCzDu7RyMPpTvh054+xahSgj4HFQ+NmflvzdXsoAjYGdCguGaFKYuvq0ThCQ==} peerDependencies: react: ^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0 @@ -2387,12 +2387,12 @@ snapshots: transitivePeerDependencies: - supports-color - '@astrojs/mdx@4.3.7(astro@5.14.4(@types/node@24.7.2)(idb-keyval@6.2.2)(jiti@2.6.1)(lightningcss@1.30.1)(rollup@4.52.4)(typescript@5.9.3))': + '@astrojs/mdx@4.3.7(astro@5.14.5(@types/node@24.7.2)(idb-keyval@6.2.2)(jiti@2.6.1)(lightningcss@1.30.1)(rollup@4.52.4)(typescript@5.9.3))': dependencies: '@astrojs/markdown-remark': 6.3.8 '@mdx-js/mdx': 3.1.1 acorn: 8.15.0 - astro: 5.14.4(@types/node@24.7.2)(idb-keyval@6.2.2)(jiti@2.6.1)(lightningcss@1.30.1)(rollup@4.52.4)(typescript@5.9.3) + astro: 5.14.5(@types/node@24.7.2)(idb-keyval@6.2.2)(jiti@2.6.1)(lightningcss@1.30.1)(rollup@4.52.4)(typescript@5.9.3) es-module-lexer: 1.7.0 estree-util-visit: 2.0.0 hast-util-to-html: 9.0.5 @@ -3184,7 +3184,7 @@ snapshots: astring@1.9.0: {} - astro@5.14.4(@types/node@24.7.2)(idb-keyval@6.2.2)(jiti@2.6.1)(lightningcss@1.30.1)(rollup@4.52.4)(typescript@5.9.3): + astro@5.14.5(@types/node@24.7.2)(idb-keyval@6.2.2)(jiti@2.6.1)(lightningcss@1.30.1)(rollup@4.52.4)(typescript@5.9.3): dependencies: '@astrojs/compiler': 2.13.0 '@astrojs/internal-helpers': 0.7.4 @@ -3854,7 +3854,7 @@ snapshots: dependencies: react: 19.2.0 - lucide-react@0.545.0(react@19.2.0): + lucide-react@0.546.0(react@19.2.0): dependencies: react: 19.2.0