From 44dda6dc5b9e7c9c23e50873a69acbc7af7f3dba Mon Sep 17 00:00:00 2001 From: FrenzyExists Date: Tue, 8 Oct 2024 18:05:58 -0400 Subject: [PATCH] fix vercel --- vite.config.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/vite.config.js b/vite.config.js index 989e636..d131a53 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,5 +1,5 @@ import { fileURLToPath, URL } from 'node:url' -import { defineConfig } from 'vite' +import { defineConfig, loadEnv } from 'vite' import Vue from '@vitejs/plugin-vue' import Pages from 'vite-plugin-pages' import Markdown from 'vite-plugin-vue-markdown' @@ -8,12 +8,16 @@ import WebfontDownload from 'vite-plugin-webfont-dl' import Layouts from 'vite-plugin-vue-layouts' import path from 'node:path' import { resolve } from 'path' +import { env } from 'node:process' + +// const env = loadEnv(mode, process.cwd(), '') // https://vitejs.dev/config/ export default defineConfig({ - // define: { - // 'process.env': process.env - // }, + define: { + 'process.env': process.env, + }, + plugins: [ Vue({ include: [/\.vue$/, /\.md$/], // <--