Skip to content

Commit

Permalink
Merge pull request #2453 from starknet-io/dev
Browse files Browse the repository at this point in the history
Merge dev into production
  • Loading branch information
igalst authored Feb 12, 2024
2 parents 373f4b5 + cb8a0f3 commit 5eab83d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/webstie-alt-env.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Deploy Starknet Website (Altternative environment)
name: Build and Deploy Starknet Website (Alternative environment)

on:
workflow_dispatch:
Expand All @@ -8,7 +8,7 @@ jobs:
name: Build and Deploy
environment:
name: Starknet Website ${{ github.ref_name }}
url: https://${{ env.GITHUB_REF_SLUG_URL }}.starknet-websites.pages.dev
url: https://${{ env.GITHUB_REF_SLUG_URL }}.alt-starknet-website.pages.dev
runs-on: ubuntu-22.04
steps:
- name: Checkout
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
if [ "${{ env.GITHUB_REF_SLUG_URL }}" = "production" ]; then
echo "VITE_SITE_URL=https://www.starknet.io" >> $GITHUB_ENV
else
echo "VITE_SITE_URL=https://${{ env.GITHUB_REF_SLUG_URL }}.starknet-websites.pages.dev" >> $GITHUB_ENV
echo "VITE_SITE_URL=https://${{ env.GITHUB_REF_SLUG_URL }}.alt-starknet-website.pages.dev" >> $GITHUB_ENV
fi
- name: Build project
Expand All @@ -82,7 +82,7 @@ jobs:
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN_ALT }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID_ALT }}
projectName: starknet-websites
projectName: alt-starknet-website
directory: dist/client
workingDirectory: workspaces/website
wranglerVersion: '3'
Expand Down
7 changes: 3 additions & 4 deletions workspaces/website/src/blocks/HomepageHero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ type Props = {
};
};
import { Intro } from "./Intro";
import { navigate } from "vite-plugin-ssr/client/router";

export const HomepageHero = ({ seo }: Props) => {
return (
Expand Down Expand Up @@ -117,7 +116,7 @@ export const HomepageHero = ({ seo }: Props) => {
zIndex={4}
>
<Button
onClick={() => navigate("/en/developers")}
href="/en/developers"
size="lg"
minW="210px"
variant="primaryHero"
Expand All @@ -127,9 +126,9 @@ export const HomepageHero = ({ seo }: Props) => {
<Button
size="lg"
variant="secondaryHero"
onClick={() => navigate("/en/what-is-starknet")}
href="/en/what-is-starknet"
>
Learn the basics
Explore Starknet
</Button>
</Stack>
</Box>
Expand Down

0 comments on commit 5eab83d

Please sign in to comment.