Skip to content

Commit

Permalink
Move images back to in-app because of deploy and CDN merge
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoretsu committed Jan 5, 2024
1 parent 2ec3e1a commit 6a886a9
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 31 deletions.
1 change: 0 additions & 1 deletion .env.example

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

# Next.js
.next
out/

# Test files
**/coverage
Expand Down
11 changes: 1 addition & 10 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ module.exports = async (phase, { defaultConfig }) => {
},
},
},
i18n: {
locales: ["en", "pt"],
defaultLocale: "en",
},
images: {
remotePatterns: [
{
Expand All @@ -28,14 +24,9 @@ module.exports = async (phase, { defaultConfig }) => {
},
],
},
output: "export",
productionBrowserSourceMaps: true,
reactStrictMode: true,
rewrites: () => [
{
source: "/images/:path*",
destination: "https://d1jarb7xa67pb9.cloudfront.net/images/:path*",
},
],
sassOptions: {
logger: {
warn: message => console.warn(message),
Expand Down
2 changes: 1 addition & 1 deletion src/app/bosses/tracker/components/BossTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ export default function BossTable() {
{parsedBosses.map(([boss, difficulties]) => (
<section key={boss}>
<div className={styles.bossIcon}>
<img src={`${process.env.NEXT_PUBLIC_CDN_URL}/images/bosses/icons/${boss}.png`} alt="" />
<img src={`/images/bosses/icons/${boss}.png`} alt="" />
<p>{boss}</p>
</div>

Expand Down
5 changes: 1 addition & 4 deletions src/app/bosses/tracker/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ export default function BossesTracker() {
return (
<main className={styles.main}>
<h1>
<img
src={`${process.env.NEXT_PUBLIC_CDN_URL}/images/items/intense_power_crystal.png`}
alt="Intense Power Crystal"
/>
<img src="/images/items/intense_power_crystal.png" alt="Intense Power Crystal" />
Tracker
</h1>

Expand Down
6 changes: 1 addition & 5 deletions src/app/symbols/calculator/components/SymbolManager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,7 @@ export default function SymbolManager({ symbols, type = "" as SymbolType }: Symb
return (
<div className={styles.symbolInput} key={symbol.id}>
<h3>{regionName}</h3>
<img
src={`${process.env.NEXT_PUBLIC_CDN_URL}/images/assets/${symbol.id}.png`}
alt={symbol.name}
title={symbol.description}
/>
<img src={`/images/assets/${symbol.id}.png`} alt={symbol.name} title={symbol.description} />

<div>
<span>Level</span>
Expand Down
12 changes: 2 additions & 10 deletions src/app/symbols/calculator/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,9 @@ export default function SymbolCalculator() {
<>
<main className={styles.main}>
<h1>
<img
src={`${process.env.NEXT_PUBLIC_CDN_URL}/images/assets/2437750.png`}
alt="Arcane Symbol Selector Coupon"
title="Arcane Symbol"
/>
<img src="/images/assets/2437750.png" alt="Arcane Symbol Selector Coupon" title="Arcane Symbol" />
/
<img
src={`${process.env.NEXT_PUBLIC_CDN_URL}/images/assets/2633336.png`}
alt="Sacred Symbol Selector Coupon"
title="Sacred Symbol"
/>
<img src="/images/assets/2633336.png" alt="Sacred Symbol Selector Coupon" title="Sacred Symbol" />
Calculator
</h1>

Expand Down

0 comments on commit 6a886a9

Please sign in to comment.