mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-13 01:30:37 +08:00
Add 404.html
This commit is contained in:
parent
85e42772ce
commit
7def60a590
@ -60,6 +60,16 @@ export const buildPublic = task(require.main === module, __filename)(async (span
|
||||
path.join(PUBLIC_DIR, '_headers')
|
||||
);
|
||||
|
||||
await compareAndWriteFile(
|
||||
span,
|
||||
[
|
||||
'#########################################',
|
||||
'# Sukka\'s Ruleset - 404 Not Found',
|
||||
'################## EOF ##################'
|
||||
],
|
||||
path.join(PUBLIC_DIR, '404.html')
|
||||
);
|
||||
|
||||
return writeFile(path.join(PUBLIC_DIR, 'index.html'), html);
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user