It all works!
This commit is contained in:
parent
432bf550ff
commit
bf44806119
37
index.html
37
index.html
|
|
@ -1,19 +1,22 @@
|
|||
<!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>cumtanks.snowsune.net</title>
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:title" content="cumtanks.snowsune.net" />
|
||||
<meta property="og:image" content="/preview.png" />
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<meta name="twitter:title" content="cumtanks.snowsune.net" />
|
||||
<meta name="twitter:image" content="/preview.png" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script type="module" src="/src/main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<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>cumtanks.snowsune.net</title>
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:title" content="cumtanks.snowsune.net" />
|
||||
<meta property="og:image" content="https://cumtanks.snowsune.net/main-preview.png" />
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<meta name="twitter:title" content="cumtanks.snowsune.net" />
|
||||
<meta name="twitter:image" content="https://cumtanks.snowsune.net/main-preview.png" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script type="module" src="/src/main.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
@ -22,6 +22,13 @@ http {
|
|||
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
|
||||
location / {
|
||||
expires 1h;
|
||||
|
|
|
|||
|
|
@ -6,11 +6,18 @@ export default defineConfig(({ command }) => {
|
|||
server: {
|
||||
host: true
|
||||
},
|
||||
build: {
|
||||
rollupOptions: {
|
||||
input: {
|
||||
main: "./index.html",
|
||||
vixiclones: "./vixiclones.html"
|
||||
}
|
||||
}
|
||||
},
|
||||
plugins: [
|
||||
{
|
||||
name: "generate-clones-preview",
|
||||
async closeBundle() {
|
||||
// Only generate previews during build, not in dev/serve mode
|
||||
if (command === "build") {
|
||||
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