Skip to content

Free & Open-Source Invoice Generator - No Sign-Up, No Ads, Instant PDF Export, 100% In-Browser, and Fully Customizable Templates.

fix: update asset URLs in About page and tests for improved resource … (#104)

Vlad Sazonau6e22bea510c1
diff --git a/e2e/about.test.ts b/e2e/about.test.ts
index cb0fc81..6b5ce08 100644
--- a/e2e/about.test.ts
+++ b/e2e/about.test.ts
@@ -39,7 +39,7 @@ test.describe("About page", () => {
await expect(video).toBeVisible();
await expect(video).toHaveAttribute(
"poster",
- "https://easy-invoice-pdf-assets.1xeq.workers.dev/easy-invoice-video-placeholder.webp?v=1"
+ "https://ik.imagekit.io/fl2lbswwo/easy-invoice-video-placeholder.webp"
);
await expect(video).toHaveAttribute("muted");
await expect(video).toHaveAttribute("loop");
diff --git a/src/app/(app)/page.client.tsx b/src/app/(app)/page.client.tsx
index 31408a3..8685609 100644
--- a/src/app/(app)/page.client.tsx
+++ b/src/app/(app)/page.client.tsx
@@ -37,6 +37,7 @@ import { useSearchParams } from "next/navigation";
import { useEffect, useState } from "react";
import { toast } from "sonner";
import { z } from "zod";
+import { VIDEO_DEMO_URL } from "@/config";
// import { InvoicePDFDownloadMultipleLanguages } from "./components/invoice-pdf-download-multiple-languages";
/**
@@ -444,7 +445,7 @@ function ProjectInfo() {
</DialogHeader>
<div className="aspect-video w-full overflow-hidden">
<video
- src="https://easy-invoice-pdf-assets.1xeq.workers.dev/easy-invoice-demo.mp4"
+ src={VIDEO_DEMO_URL}
muted
controls
autoPlay
diff --git a/src/app/[locale]/about/layout.tsx b/src/app/[locale]/about/layout.tsx
index a61bc4f..2b64ada 100644
--- a/src/app/[locale]/about/layout.tsx
+++ b/src/app/[locale]/about/layout.tsx
@@ -43,7 +43,7 @@ export async function generateMetadata({
type: "website",
images: [
{
- url: "https://easy-invoice-pdf-assets.1xeq.workers.dev/easy-invoice-opengraph-image.png",
+ url: "https://ik.imagekit.io/fl2lbswwo/opengraph-image.png",
width: 1200,
height: 630,
alt: "Free Invoice Generator - A web application offering live preview, open source functionality, and no sign up required",
@@ -57,7 +57,7 @@ export async function generateMetadata({
creator: "@vlad_sazon",
images: [
{
- url: "https://easy-invoice-pdf-assets.1xeq.workers.dev/easy-invoice-opengraph-image.png",
+ url: "https://ik.imagekit.io/fl2lbswwo/opengraph-image.png",
width: 1200,
height: 630,
alt: "Free Invoice Generator - A web application offering live preview, open source functionality, and no sign up required",
diff --git a/src/app/[locale]/about/page.tsx b/src/app/[locale]/about/page.tsx
index c85e910..422ad07 100644
--- a/src/app/[locale]/about/page.tsx
+++ b/src/app/[locale]/about/page.tsx
@@ -24,6 +24,7 @@ import { useTranslations, type Locale } from "next-intl";
import { setRequestLocale } from "next-intl/server";
import { type Graph } from "schema-dts";
import { LanguageSwitcher } from "./components/language-switcher";
+import { VIDEO_DEMO_URL } from "@/config";
const JSON_LD: Graph = {
"@context": "https://schema.org",
@@ -221,8 +222,8 @@ function HeroSection() {
{/* Video container */}
<div className="w-full">
<Video
- src="https://easy-invoice-pdf-assets.1xeq.workers.dev/easy-invoice-demo.mp4"
- fallbackImg="https://easy-invoice-pdf-assets.1xeq.workers.dev/easy-invoice-video-placeholder.webp?v=1"
+ src={VIDEO_DEMO_URL}
+ fallbackImg="https://ik.imagekit.io/fl2lbswwo/easy-invoice-video-placeholder.webp"
testId="hero-about-page-video"
/>
</div>
diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index 32d4169..33071d7 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -32,16 +32,18 @@ export const metadata: Metadata = {
publisher: "Uladzislau Sazonau",
icons: {
icon: [
- { url: "https://easy-invoice-pdf-assets.1xeq.workers.dev/favicon.ico" },
{
- url: "https://easy-invoice-pdf-assets.1xeq.workers.dev/icon.png",
+ url: "https://ik.imagekit.io/fl2lbswwo/favicon.ico",
+ },
+ {
+ url: "https://ik.imagekit.io/fl2lbswwo/icon.png",
type: "image/png",
sizes: "96x96",
},
],
apple: [
{
- url: "https://easy-invoice-pdf-assets.1xeq.workers.dev/apple-icon.png",
+ url: "https://ik.imagekit.io/fl2lbswwo/apple-icon.png",
type: "image/png",
sizes: "180x180",
},
@@ -55,7 +57,7 @@ export const metadata: Metadata = {
type: "website",
images: [
{
- url: "https://easy-invoice-pdf-assets.1xeq.workers.dev/easy-invoice-opengraph-image.png",
+ url: "https://ik.imagekit.io/fl2lbswwo/opengraph-image.png",
width: 1200,
height: 630,
alt: "Free Invoice Generator - A web application offering live preview, open source functionality, and no sign up required",
@@ -70,7 +72,7 @@ export const metadata: Metadata = {
creator: "@vlad_sazon",
images: [
{
- url: "https://easy-invoice-pdf-assets.1xeq.workers.dev/easy-invoice-opengraph-image.png",
+ url: "https://ik.imagekit.io/fl2lbswwo/opengraph-image.png",
width: 1200,
height: 630,
alt: "Free Invoice Generator - A web application offering live preview, open source functionality, and no sign up required",
diff --git a/src/config.ts b/src/config.ts
index 445c2aa..44bdc24 100644
--- a/src/config.ts
+++ b/src/config.ts
@@ -3,3 +3,6 @@ const port = process.env.PORT || 3000;
export const APP_URL = process.env.VERCEL_PROJECT_PRODUCTION_URL
? `https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`
: `http://localhost:${port}`;
+
+export const VIDEO_DEMO_URL =
+ "https://easy-invoice-pdf-assets.1xeq.workers.dev/easy-invoice-demo.mp4";