From 1fe029544f219d201e955766fa80c92794a4e889 Mon Sep 17 00:00:00 2001 From: Christopher Biscardi Date: Sun, 1 Sep 2024 00:58:25 -0700 Subject: [PATCH] try netlify alias --- .github/workflows/deploy.yml | 4 ++-- .github/workflows/release.yml | 1 - crates/www/src/routes/index.rs | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5c0e036..cd6c74b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -22,8 +22,8 @@ jobs: uses: netlify/actions/cli@master with: # args: deploy --dir=target/site --prod - # temporarily use preview deploy - args: deploy --dir=target/site + # temporarily use preview deploy and alias + args: deploy --dir=target/site --alias wasm-cdn env: NETLIFY_SITE_ID: b635e6d9-900c-4c21-993d-11191073ff32 NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ac9c5b6..b0f5d81 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,7 +40,6 @@ jobs: - run: cargo leptos build --release --project www env: CDN_PATH: https://cdn.christopherbiscardi.com - CDN_PKG_PATH: https://cdn.christopherbiscardi.com/pkg LEPTOS_HASH_FILES: true - uses: hustcer/setup-nu@v3 with: diff --git a/crates/www/src/routes/index.rs b/crates/www/src/routes/index.rs index ba388e3..12ff06d 100644 --- a/crates/www/src/routes/index.rs +++ b/crates/www/src/routes/index.rs @@ -95,7 +95,7 @@ pub fn IndexPage() -> impl IntoView { // 38.0 30.0 92.0 #624DEA border_gradient: Some("conic-gradient( from calc(180deg + var(--angle)) at 50% 70%, #624DEA, #ded9fb)"), center_title: true, - image_header: Some("/img/wasm-heading.avif"), + image_header: Some("https://wasm-cdn--solicitor-seal-13462.netlify.app/img/wasm-heading.avif"), ..Default::default() }, BentoBoxContent { @@ -253,7 +253,7 @@ pub fn Hero() -> impl IntoView { party corgi rainbow animated