Skip to content

Commit 688c55f

Browse files
committed
update assets path
1 parent ea74e0f commit 688c55f

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

next.config.mjs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
/** @type {import('next').NextConfig} */
2-
const nextConfig = {
3-
output: "export",
4-
distDir: "dist",
5-
};
2+
import {PHASE_DEVELOPMENT_SERVER} from 'next/constants.js'
63

7-
export default nextConfig;
4+
export default (phase) => {
5+
const isDev = phase === PHASE_DEVELOPMENT_SERVER
6+
return {
7+
assetPrefix: isDev ? undefined : '/webjars/chat-agent-ui',
8+
output: "export",
9+
distDir: "dist",
10+
}
11+
}

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66
<groupId>com.javaaidev</groupId>
77
<artifactId>chat-agent-ui</artifactId>
8-
<version>0.5.0</version>
8+
<version>0.5.1</version>
99
<name>Chat Agent UI</name>
1010
<description>Chat Agent UI</description>
1111

0 commit comments

Comments
 (0)