Skip to content

Commit 184c5c0

Browse files
committed
chore: use base path in images and hardcode it
1 parent bb7f664 commit 184c5c0

File tree

3 files changed

+10
-25
lines changed

3 files changed

+10
-25
lines changed

apps/testing-frontend/next.config.js

+2-22
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,9 @@ const nextConfig = {
55
process.env.NEXT_PUBLIC_BACKEND_API_URL ||
66
'NEXT_PUBLIC_BACKEND_API_URL_PLACEHOLDER',
77
},
8-
basePath: process.env.NEXT_PUBLIC_BASE_PATH || '',
8+
basePath: '/testing-interop-frontend',
99
output: 'standalone',
10-
headers: () => {
11-
return [
12-
{
13-
source: '/api/issue-oidc',
14-
headers: [
15-
{
16-
key: 'Access-Control-Allow-Origin',
17-
value: '*',
18-
},
19-
{
20-
key: 'Access-Control-Allow-Methods',
21-
value: 'GET, POST, PUT, DELETE, OPTIONS',
22-
},
23-
{
24-
key: 'Access-Control-Allow-Headers',
25-
value: 'Content-Type, Authorization, x-api-key, schemaType',
26-
},
27-
],
28-
},
29-
];
30-
},
10+
headers: () => {},
3111
webpack: (config) => {
3212
config.externals.push('bufferutil');
3313
config.externals.push('utf-8-validate');

apps/testing-frontend/src/app/page.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ export default function Home() {
1010
<div className="flex h-min w-full items-center justify-between">
1111
<div>
1212
<Image
13-
src={'/images/EDU-Coin.png'}
13+
src={'/testing-interop-frontend/images/EDU-Coin.png'}
1414
alt="Logo"
1515
width={64}
1616
height={64}
1717
/>
1818
</div>
1919
<div>
2020
<Image
21-
src={'/images/blockchain-lab.svg'}
21+
src={'/testing-interop-frontend/images/blockchain-lab.svg'}
2222
alt="Logo"
2323
width={64}
2424
height={64}

apps/testing-frontend/src/components/Logo/index.jsx

+6-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@ import Image from 'next/image';
33

44
export const Logo = () => (
55
<div className="flex items-center gap-x-2">
6-
<Image src="/images/EDU-Coin.png" alt="Logo" width={64} height={64} />
6+
<Image
7+
src="/testing-interop-frontend/images/EDU-Coin.png"
8+
alt="Logo"
9+
width={64}
10+
height={64}
11+
/>
712
<div>
813
<span className="text-3xl font-bold text-gray-700">EduCTX</span>
914
<span className="text-xl font-bold text-green-500">2.0</span>

0 commit comments

Comments
 (0)