mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2025-12-12 22:06:18 +00:00
feat: add links to docs and dotio
This commit is contained in:
@@ -9,12 +9,14 @@ import {fileURLToPath} from "url"
|
||||
|
||||
const isTauri = "TAURI_FAMILY" in process.env
|
||||
console.info(isTauri ? "Building for Tauri" : "Building for PWA")
|
||||
const {homepage, bugs} = JSON.parse(
|
||||
const {homepage, bugs, repository} = JSON.parse(
|
||||
await readFile(fileURLToPath(new URL("package.json", import.meta.url)), "utf8"),
|
||||
)
|
||||
|
||||
process.env.VITE_HOMEPAGE_URL = homepage
|
||||
process.env.VITE_HOMEPAGE_URL = repository.url.replace(/\.git$/, "")
|
||||
process.env.VITE_DOCS_URL = homepage
|
||||
process.env.VITE_BUGS_URL = bugs.url
|
||||
process.env.VITE_LEARN_URL = "https://www.iq-eq.io/"
|
||||
|
||||
export default defineConfig({
|
||||
build: {
|
||||
|
||||
Reference in New Issue
Block a user