Skip to content

Commit

Permalink
fix: Custom domain params for GH Pages + Vite
Browse files Browse the repository at this point in the history
  • Loading branch information
achetronic committed Dec 23, 2023
1 parent a33a95f commit c953acb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/assets/apartments/apartments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
Expand Down
3 changes: 2 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c953acb

Please sign in to comment.