Skip to content

Commit

Permalink
fix: setup domain & remove base url (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
jolexxa authored Sep 18, 2024
1 parent 58c22bf commit ae95d60
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 10 deletions.
3 changes: 1 addition & 2 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import { defineConfig } from "astro/config";

// https://astro.build/config
export default defineConfig({
site: "https://vgventures.github.io",
base: "very_good_engineering",
site: "https://engineering.verygood.ventures",
integrations: [
starlight({
favicon: "./public/favicon.png",
Expand Down
1 change: 1 addition & 0 deletions public/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engineering.verygood.ventures
3 changes: 1 addition & 2 deletions src/components/vgv_footer/vgv-footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ interface Props {
}
const { compact = false } = Astro.props;
const base = import.meta.env.BASE_URL;
---

<div
Expand All @@ -32,7 +31,7 @@ const base = import.meta.env.BASE_URL;
<a href="https://verygood.ventures/testimonials">Testimonials</a>
<a href="https://verygood.ventures/careers">Careers</a>
<a href="https://verygood.ventures/success-stories">Our Work</a>
<a href={base}>Engineering</a>
<a href="/">Engineering</a>
</div>
</section>
</div>
Expand Down
5 changes: 2 additions & 3 deletions src/components/vgv_nav/vgv-nav.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import ThemeSelect from "@astrojs/starlight/components/ThemeSelect.astro";
import type { Props } from "@astrojs/starlight/props";
// Only show docs link from homepage
const base = import.meta.env.BASE_URL;
const shouldShowLinks = Astro.url.pathname === base + "/";
const shouldShowLinks = Astro.url.pathname === "/";
---

<header class="fixed top-0 w-[100%] transition-all backdrop-blur-2xl z-20">
Expand All @@ -26,7 +25,7 @@ const shouldShowLinks = Astro.url.pathname === base + "/";
{
shouldShowLinks && (
<a
href={`${base}/engineering/philosophy`}
href={"/engineering/philosophy"}
class="sm:ml-4 md:ml-8 mx-4 mt-[1px] flex text-lg no-underline hover:underline visited:text-inherit active:text-inherit"
>
Docs
Expand Down
4 changes: 1 addition & 3 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ import financialDashboard from "./home/demos/financial_dashboard.png";
import vehicleCockpit from "./home/demos/vehicle_cockpit.png";
import hero from "./home/very_good_engineering.png";
const base = import.meta.env.BASE_URL;
const props = await generateStarlightPageRouteData({
props: {
...Astro.props,
Expand All @@ -42,7 +40,7 @@ const props = await generateStarlightPageRouteData({
actions: [
{
text: "Read the Best Practices",
link: `${base}/engineering/philosophy`,
link: "/engineering/philosophy",
icon: "right-arrow",
variant: "primary",
},
Expand Down

0 comments on commit ae95d60

Please sign in to comment.