Serve inspire me as submodule
All checks were successful
Deploy Website / build-and-deploy (push) Successful in 27s
All checks were successful
Deploy Website / build-and-deploy (push) Successful in 27s
This commit is contained in:
17
app/inspire-me/route.ts
Normal file
17
app/inspire-me/route.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { readFile } from 'fs/promises';
|
||||
import path from 'path';
|
||||
|
||||
export async function GET() {
|
||||
const indexPath = path.join(process.cwd(), 'public', 'inspire-me', 'index.html');
|
||||
const html = await readFile(indexPath, 'utf8');
|
||||
const body = html.replace(
|
||||
'<title>Inspire Me</title>',
|
||||
'<base href="/inspire-me/">\n <title>Inspire Me</title>'
|
||||
);
|
||||
|
||||
return new Response(body, {
|
||||
headers: {
|
||||
'Content-Type': 'text/html; charset=utf-8',
|
||||
},
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user