Skip to content

Commit

Permalink
Fix problem with asset build
Browse files Browse the repository at this point in the history
  • Loading branch information
behnamrhp committed Mar 30, 2024
1 parent 88171a2 commit 256c5de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
images:{
loader: 'akamai',
path: process.env.NEXT_PUBLIC_BASE_URL
},
webpack: (config) => {
config.module.rules.push({
test: /\.glsl/,
Expand Down
2 changes: 1 addition & 1 deletion utilities/statics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const companyDetails = {
} as const


const image_prefixes = process.env.NODE_ENV === 'production' ? process.env.NEXT_PUBLIC_BASE_URL : ''
const image_prefixes = process.env.NODE_ENV !== 'production' ? process.env.NEXT_PUBLIC_BASE_URL : ''
export const medias = {
icons: {
gitHub: image_prefixes + '/icons/GitHub.svg',
Expand Down

0 comments on commit 256c5de

Please sign in to comment.