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:
@@ -12,6 +12,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
|
||||||
- name: Build Docker Image
|
- name: Build Docker Image
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
[submodule "public/inspire-me"]
|
||||||
|
path = public/inspire-me
|
||||||
|
url = https://github.com/akkolli/inspire-me.git
|
||||||
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',
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
@@ -15,6 +15,7 @@ export default function sitemap(): MetadataRoute.Sitemap {
|
|||||||
{ url: 'https://akkolli.net/projects', lastModified: new Date('2024-10-26') },
|
{ url: 'https://akkolli.net/projects', lastModified: new Date('2024-10-26') },
|
||||||
{ url: 'https://akkolli.net/projects/graph-attention-topology', lastModified: new Date('2024-10-26') },
|
{ url: 'https://akkolli.net/projects/graph-attention-topology', lastModified: new Date('2024-10-26') },
|
||||||
{ url: 'https://akkolli.net/blog', lastModified: latestPostDate },
|
{ url: 'https://akkolli.net/blog', lastModified: latestPostDate },
|
||||||
|
{ url: 'https://akkolli.net/inspire-me', lastModified: new Date('2026-06-19') },
|
||||||
{ url: 'https://akkolli.net/resume' },
|
{ url: 'https://akkolli.net/resume' },
|
||||||
...blogEntries,
|
...blogEntries,
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ const isDev = process.env.NODE_ENV === "development";
|
|||||||
const contentSecurityPolicy = [
|
const contentSecurityPolicy = [
|
||||||
"default-src 'self'",
|
"default-src 'self'",
|
||||||
`script-src 'self' 'unsafe-inline'${isDev ? " 'unsafe-eval'" : ""}`,
|
`script-src 'self' 'unsafe-inline'${isDev ? " 'unsafe-eval'" : ""}`,
|
||||||
"style-src 'self' 'unsafe-inline'",
|
"style-src 'self' 'unsafe-inline' https://fonts.googleapis.com",
|
||||||
"img-src 'self' blob: data:",
|
"img-src 'self' blob: data:",
|
||||||
"font-src 'self' data:",
|
"font-src 'self' data: https://fonts.gstatic.com",
|
||||||
"connect-src 'self'",
|
"connect-src 'self'",
|
||||||
"object-src 'none'",
|
"object-src 'none'",
|
||||||
"frame-src 'none'",
|
"frame-src 'none'",
|
||||||
|
|||||||
1
public/inspire-me
Submodule
1
public/inspire-me
Submodule
Submodule public/inspire-me added at e90a99ebf3
Reference in New Issue
Block a user