Skip to content

Commit fda96c8

Browse files
committed
image prerender trial
1 parent 4b210e5 commit fda96c8

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/workflows/deploy.yml

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
- run: npx nuxi generate
2222
env:
2323
NITRO_PRESET: github_pages
24+
BASE_URL: /personal-site/
2425

2526
- name: Upload artifact
2627
uses: actions/upload-pages-artifact@v1

constants/project-items.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import cartOutline from "~/assets/app/icons/cart-outline.svg";
2+
13
export interface ProjectItem {
24
title: string;
35
subtitle: string;
@@ -12,7 +14,7 @@ export const projectItems = [
1214
subtitle: "B2B ecommerce platform",
1315
description:
1416
"E-commerce platform featuring a custom admin panel and ERP integration, designed for the B2B clients of the Amsterdam-based clothing brand Bickley + Mitchell.",
15-
img: new URL("assets/app/icons/cart-outline.svg", import.meta.url).href,
17+
img: cartOutline, //"assets/app/icons/cart-outline.svg",
1618
link: "https://b2b.bickleyandmitchell.com",
1719
},
1820
{

nuxt.config.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
// https://nuxt.com/docs/api/configuration/nuxt-config
22
export default defineNuxtConfig({
33
app: {
4-
// baseURL: "/personal-site/",
4+
baseURL: process.env.BASE_URL?.toString(), //process.env.NODE_ENV === "production" ? "/personal-site/" : "/",
55
},
6-
//ssr: false,
76
devtools: { enabled: true },
87
modules: ["@nuxt/eslint", "@nuxt/test-utils/module"],
98
typescript: {

0 commit comments

Comments
 (0)