From 67914ccc1fecfd15f16caa0db410acf73bd5275e Mon Sep 17 00:00:00 2001 From: KorbsStudio Date: Wed, 25 Jan 2023 03:26:08 -0500 Subject: [PATCH] Update for Astro v2.0.0. --- build/prepare-production.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/prepare-production.js b/build/prepare-production.js index 8f9db14..ca86c52 100644 --- a/build/prepare-production.js +++ b/build/prepare-production.js @@ -1,11 +1,11 @@ // What's all this? // When preparing your app for production, Astro needs to be built first. -// Astro builds with the index file pointing to the wrong path for CSS, as it's using "/assets/" instead of "./assets/", that one dot is important. +// Astro builds with the index file pointing to the wrong path for CSS, as it's using "/_astro/" instead of "./_astro/", that one dot is important. // This file will quickly fix that for you, also it's part of the `yarn build` command so you don't need to worry about it each time you build. var replace = require("replace"); replace({ - regex: "/assets/", - replacement: "./assets/", + regex: "/_astro/", + replacement: "./_astro/", paths: ['./app/index.html'], recursive: true, silent: true,