It all works!
This commit is contained in:
parent
432bf550ff
commit
bf44806119
|
|
@ -1,5 +1,6 @@
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
||||||
|
|
@ -7,13 +8,15 @@
|
||||||
<title>cumtanks.snowsune.net</title>
|
<title>cumtanks.snowsune.net</title>
|
||||||
<meta property="og:type" content="website" />
|
<meta property="og:type" content="website" />
|
||||||
<meta property="og:title" content="cumtanks.snowsune.net" />
|
<meta property="og:title" content="cumtanks.snowsune.net" />
|
||||||
<meta property="og:image" content="/preview.png" />
|
<meta property="og:image" content="https://cumtanks.snowsune.net/main-preview.png" />
|
||||||
<meta name="twitter:card" content="summary_large_image" />
|
<meta name="twitter:card" content="summary_large_image" />
|
||||||
<meta name="twitter:title" content="cumtanks.snowsune.net" />
|
<meta name="twitter:title" content="cumtanks.snowsune.net" />
|
||||||
<meta name="twitter:image" content="/preview.png" />
|
<meta name="twitter:image" content="https://cumtanks.snowsune.net/main-preview.png" />
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
<script type="module" src="/src/main.js"></script>
|
<script type="module" src="/src/main.js"></script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
@ -22,6 +22,13 @@ http {
|
||||||
try_files $uri =404;
|
try_files $uri =404;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Serve vixiclones.html for /vixiclones route
|
||||||
|
location = /vixiclones {
|
||||||
|
expires 1h;
|
||||||
|
add_header Cache-Control "public, no-transform";
|
||||||
|
try_files /vixiclones.html =404;
|
||||||
|
}
|
||||||
|
|
||||||
# Normal caching for other static files
|
# Normal caching for other static files
|
||||||
location / {
|
location / {
|
||||||
expires 1h;
|
expires 1h;
|
||||||
|
|
|
||||||
|
|
@ -6,11 +6,18 @@ export default defineConfig(({ command }) => {
|
||||||
server: {
|
server: {
|
||||||
host: true
|
host: true
|
||||||
},
|
},
|
||||||
|
build: {
|
||||||
|
rollupOptions: {
|
||||||
|
input: {
|
||||||
|
main: "./index.html",
|
||||||
|
vixiclones: "./vixiclones.html"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
{
|
{
|
||||||
name: "generate-clones-preview",
|
name: "generate-clones-preview",
|
||||||
async closeBundle() {
|
async closeBundle() {
|
||||||
// Only generate previews during build, not in dev/serve mode
|
|
||||||
if (command === "build") {
|
if (command === "build") {
|
||||||
await generateClonesPreview();
|
await generateClonesPreview();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,19 @@
|
||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<title>Vixi Clones</title>
|
||||||
|
<meta property="og:type" content="website" />
|
||||||
|
<meta property="og:title" content="Vixi Clones" />
|
||||||
|
<meta property="og:image" content="https://cumtanks.snowsune.net/vixiclones-preview.png" />
|
||||||
|
<meta name="twitter:card" content="summary_large_image" />
|
||||||
|
<meta name="twitter:title" content="Vixi Clones" />
|
||||||
|
<meta name="twitter:image" content="https://cumtanks.snowsune.net/vixiclones-preview.png" />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="app"></div>
|
||||||
|
<script type="module" src="/src/main.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Loading…
Reference in New Issue