From aad4899ac861f57932d22f8db001941e1963a9f1 Mon Sep 17 00:00:00 2001 From: Cody Bontecou Date: Sun, 25 Feb 2024 23:35:33 -0700 Subject: [PATCH] updated settings for latest vitepress --- package.json | 3 ++- src/.vitepress/config.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index c4d5918..5e50770 100755 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "0.0.1", "description": "", "main": "index.js", + "type": "module", "authors": { "name": "Cody Bontecou", "email": "codybontecou@gmail.com" @@ -10,7 +11,7 @@ "repository": "https://github.com/codybontecou/blog/blog", "scripts": { "dev": "vitepress dev src", - "build": "vitepress build src yarn generate", + "build": "vitepress build src npm run generate", "serve": "vitepress serve src --port 8080", "generate": "node ./util/generateSitemap && node ./util/generateNetlifyToml", "generate:netlify": "node ./util/generateNetlifyToml", diff --git a/src/.vitepress/config.ts b/src/.vitepress/config.ts index 5847d94..9b4b640 100755 --- a/src/.vitepress/config.ts +++ b/src/.vitepress/config.ts @@ -2,7 +2,7 @@ import path from 'path' import { writeFileSync } from 'fs' import { Feed } from 'feed' import { defineConfig, createContentLoader, type SiteConfig } from 'vitepress' -require('dotenv').config() +import 'dotenv' import { sortedSidebar } from '../../util/generateSidebar' const hostname: string = 'https://codybontecou.com'