Fix image in meta and other details

This commit is contained in:
prototypa
2022-08-25 00:46:15 -04:00
parent b9b8feac44
commit 0a7b84b816
13 changed files with 67 additions and 49 deletions

View File

@ -1,4 +1,6 @@
import * as url from "url";
import path from "path";
import { fileURLToPath } from "url";
import { defineConfig } from "astro/config";
import tailwind from "@astrojs/tailwind";
@ -7,7 +9,7 @@ import image from "@astrojs/image";
import { SITE } from "./src/config.mjs";
const __dirname = url.fileURLToPath(new URL(".", import.meta.url));
const __dirname = path.dirname(fileURLToPath(import.meta.url));
// https://astro.build/config
export default defineConfig({
@ -30,7 +32,7 @@ export default defineConfig({
vite: {
resolve: {
alias: {
"~/": `${__dirname}src/`,
"~": path.resolve(__dirname, "./src"),
},
},
},