Skip to content

Commit fa697c3

Browse files
committed
init
1 parent d1f6f56 commit fa697c3

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

src/app.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
<title>Devak - 开发工具集合</title>
77
<meta name="description" content="一个强大的开发工具应用,支持 HTTP/HTTPS 请求捕获、API 管理、JSON 格式化校验、二维码生成解码、图片压缩、时间格式转换等功能" />
88
<meta name="keywords" content="开发工具, HTTP代理, API管理, JSON格式化, 二维码, 图片压缩, 时间转换" />
9-
<link rel="icon" href="/favico.png" />
109
%sveltekit.head%
1110
</head>
1211
<body data-sveltekit-preload-data="hover">

src/routes/+layout.svelte

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
<script>
22
import './layout.css';
33
import LanguageSelector from '$lib/components/LanguageSelector.svelte';
4+
import { base } from '$app/paths';
45
56
let { children } = $props();
67
</script>
78

89
<svelte:head>
10+
<link rel="icon" href="{base}/favico.png" />
911
<link rel="preconnect" href="https://fonts.googleapis.com" />
1012
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
1113
<link

svelte.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ import adapter from '@sveltejs/adapter-static';
33
/** @type {import('@sveltejs/kit').Config} */
44
const config = {
55
kit: {
6+
paths: {
7+
base: process.env.BASE_PATH || ''
8+
},
69
adapter: adapter({
710
pages: 'build',
811
assets: 'build',

0 commit comments

Comments
 (0)