From 9f2c1296187645f9a1b547da8e212188c5600c02 Mon Sep 17 00:00:00 2001 From: Bao Zhiyuan Date: Tue, 17 Dec 2024 15:11:15 +0800 Subject: [PATCH] genearte CNAME --- moonbit-tour/dev/generate-plugin.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/moonbit-tour/dev/generate-plugin.ts b/moonbit-tour/dev/generate-plugin.ts index e4a2fbef..87d4925c 100644 --- a/moonbit-tour/dev/generate-plugin.ts +++ b/moonbit-tour/dev/generate-plugin.ts @@ -65,6 +65,11 @@ const generatePlugin = (): vite.Plugin => { .replace("%BACK%", `Back`) .replace("%NEXT%", `Next`), }); + this.emitFile({ + type: "asset", + fileName: "CNAME", + source: "tour.moonbitlang.com", + }); }, }; };