refactor(worker): 迁移静态资源处理至Workers Sites配置
更新wrangler.toml配置,将Assets配置改为Workers Sites格式。同时优化[[path]].ts中的静态资源处理逻辑,统一使用getAssetFromKV方法并简化错误处理流程。
This commit is contained in:
46
deployed_final.html
Normal file
46
deployed_final.html
Normal file
@@ -0,0 +1,46 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>PixivNow</title>
|
||||
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<!-- <script
|
||||
async
|
||||
src="https://www.googletagmanager.com/gtag/js?id=%VITE_GOOGLE_ANALYTICS_ID%"
|
||||
></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || []
|
||||
function gtag() {
|
||||
dataLayer.push(arguments)
|
||||
}
|
||||
gtag('js', new Date())
|
||||
gtag('config', '%VITE_GOOGLE_ANALYTICS_ID%')
|
||||
</script> -->
|
||||
<!-- Umami Analytics -->
|
||||
<script defer src="https://cloud.umami.is/script.js" data-website-id="842d980c-5e11-4834-a2a8-5daaa285ce66"></script>
|
||||
<!-- Google Search Console -->
|
||||
<meta
|
||||
name="google-site-verification"
|
||||
content="%VITE_GOOGLE_SEARCH_CONSOLE_VERIFICATION%"
|
||||
/>
|
||||
<!-- Google AdSense -->
|
||||
<script
|
||||
async
|
||||
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=%VITE_ADSENSE_PUB_ID%"
|
||||
crossorigin="anonymous"
|
||||
></script>
|
||||
<!-- jQuery -->
|
||||
<!-- <script src="https://unpkg.com/jquery@3.7.1/dist/jquery.js"></script> -->
|
||||
<script type="module" crossorigin src="/assets/index-DzjFVrBY.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-QezOOX5q.css">
|
||||
</head>
|
||||
<body>
|
||||
<noscript>
|
||||
This site requires JavaScript enabled. Please check your browser settings.
|
||||
</noscript>
|
||||
<div id="app"></div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user