Skip to content

Commit a06df7f

Browse files
Copilotkiyarose
andcommitted
Polish copy and simplify base-path joins after validation feedback
Agent-Logs-Url: https://github.com/SillyLittleTech/Portf/sessions/e0e67947-5d7c-4bdd-9aba-1aa674165a7b Co-authored-by: kiyarose <75678535+kiyarose@users.noreply.github.com>
1 parent 905757a commit a06df7f

3 files changed

Lines changed: 5 additions & 12 deletions

File tree

src/hooks/useRemoteData.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@ const DATA_BASE_URL = resolveRemoteDataBaseUrl(
1111
import.meta.env.VITE_REMOTE_DATA_URL as string | undefined,
1212
);
1313
const REMOTE_DATA_ENABLED = DATA_BASE_URL !== null;
14-
const REMOTE_DATA_PATH = `${import.meta.env.BASE_URL}__remote-data`.replace(
15-
/\/{2,}/g,
16-
"/",
17-
);
14+
const REMOTE_DATA_PATH = `${import.meta.env.BASE_URL}__remote-data`;
1815

1916
// LocalStorage namespace for cached remote data. Rename if you fork the template
2017
// to avoid collisions with other apps in the browser.

src/layouts/BaseLayout.astro

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ const {
1010
title = "Portfolio Starter",
1111
description = "A modular portfolio starter built with Astro and React.",
1212
} = Astro.props as Props;
13-
const faviconHref = `${import.meta.env.BASE_URL}favicon.svg`.replace(
14-
/\/{2,}/g,
15-
"/",
16-
);
13+
const faviconHref = `${import.meta.env.BASE_URL}favicon.svg`;
1714
---
1815

1916
<!doctype html>

src/views/PrivacyPolicyPage.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -423,10 +423,9 @@ function PolicyIntro() {
423423
<p className={cn(paragraphClass, "mt-4")}>
424424
Your privacy matters. This Privacy Policy explains how the site owner
425425
(replace the name below) collects, uses, and safeguards personal
426-
information when you visit the deployed site, interact with the contact
427-
form, or engage with analytics services. <AdminHint>Your Name</AdminHint>,
428-
interact with the contact form, or engage with the analytics services that
429-
power the site.
426+
information when you visit the deployed site. <AdminHint>Your Name</AdminHint>{" "}
427+
may collect additional information when you interact with the contact form
428+
or engage with the analytics services that power the site.
430429
</p>
431430
);
432431
}

0 commit comments

Comments
 (0)