Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 509e5fd

Browse files
committed
refactor: update warning text
1 parent cf4625b commit 509e5fd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

server/app.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1091,6 +1091,9 @@ export class Appliaction {
10911091
if (dep.url.startsWith('#useDeno-')) {
10921092
dep.isData = true
10931093
dep.hash = util.trimPrefix(dep.url, '#useDeno-')
1094+
if (!this.config.ssr) {
1095+
log.warn(`use 'useDeno' hook in SPA mode`)
1096+
}
10941097
} else if (dep.url.startsWith('#inline-style-')) {
10951098
dep.isStyle = true
10961099
dep.hash = util.trimPrefix(dep.url, '#inline-style-')
@@ -1564,7 +1567,7 @@ export class Appliaction {
15641567
}
15651568
if (ret.status === 404) {
15661569
if (this.isDev) {
1567-
log.warn(`page '${url.pathname}' not found`)
1570+
log.warn(`${colors.bold('404')} '${url.pathname}' not found`)
15681571
}
15691572
return await this.render404Page(url)
15701573
}

0 commit comments

Comments
 (0)