From c953acb4860a489094aab64cf2d9a67cfd031686 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alby=20Hern=C3=A1ndez?= Date: Sat, 23 Dec 2023 11:10:29 +0000 Subject: [PATCH] fix: Custom domain params for GH Pages + Vite --- package.json | 2 +- src/assets/apartments/apartments.ts | 4 ++-- vite.config.ts | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 0dd8b78..c1a3456 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "alojamiento-alby", - "homepage": "https://alojamiento-alby.github.io/application-new/", + "homepage": "https://alojamientoalby.com", "private": true, "version": "1.0.0", "type": "module", diff --git a/src/assets/apartments/apartments.ts b/src/assets/apartments/apartments.ts index 3dc6b30..092e416 100644 --- a/src/assets/apartments/apartments.ts +++ b/src/assets/apartments/apartments.ts @@ -29,10 +29,10 @@ const apartmentsT: ApartmentStructure[] = [ galleryIds: [ { id: 1, - // imageModulePath is a relative path created by vite to find the pictures, + + // imageModulePath is a relative path created by vite to find the pictures, // it is necessary to rearrange the order of the pictures, // it is passed as a value to compare with other through the find method - imageModulePath: "./Oceano/oce-1.jpeg", originalImage: "/src/assets/apartments/Oceano/oce-1.jpeg", }, diff --git a/vite.config.ts b/vite.config.ts index 2b394bd..d326ed0 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -16,7 +16,8 @@ export default defineConfig({ // With custom domain only a slash is needed // Using GH Pages, the entire repository name is required // Ref: https://vitejs.dev/guide/static-deploy#github-pages - base: "/application-new/", + //base: "/application-new/", + base: "/", build: { commonjsOptions: { transformMixedEsModules: true,