Skip to content

Conversation

lacymorrow
Copy link
Contributor

@lacymorrow lacymorrow commented Apr 17, 2025

PR Type

  • Enhancement

Description

  • Add helper for boolean env flags and schema grouping.

  • Extend site config with manifest, payload, and metadata.

  • Introduce new authentication UI components and layouts.

  • Add MDX block configuration and update package scripts.


Changes walkthrough 📝

Relevant files
Enhancement
16 files
env.ts
Add helper for boolean feature flags, refactor env vars. 
+203/-17
site-config.ts
Extend site config with manifest and payload options.       
+174/-2 
manifest.ts
Update manifest to use siteConfig configuration values.   
+22/-24 
auth-form.tsx
New auth form component with OAuth buttons and fallback. 
+77/-0   
loader.tsx
Add new loader component for suspense fallback.                   
+80/-0   
page.tsx
Refactor sign-up page with credentials check and AuthenticationCard.
+29/-16 
page.tsx
Update sign-in page layout with AuthenticationCard component.
+19/-16 
divider.tsx
Introduce divider component for UI separation.                     
+23/-0   
layout.tsx
Modify authentication layout to include footer and main layout.
+8/-3     
sign-in.tsx
Add sign-in component wrapping auth form and divider.       
+16/-0   
logo.tsx
Update logo to leverage Icon component with site name.     
+8/-4     
icon.tsx
Add new icon component based on BoneIcon.                               
+5/-0     
suspense-fallback.tsx
Provide Loader fallback component for Suspense.                   
+5/-0     
package.json
Add upstream scripts and adjust pull command.                       
+3/-4     
block.config.json
Add new MDX block configuration with file mappings.           
+42/-0   
extensions.json
Add markdownlint extension for improved markdown linting.
+1/-0     
Additional files
4 files
ai.mdx +0/-9     
sw.js +1/-1     
sw.js.map +1/-1     
sign-in-form.tsx +0/-136 

Need help?
  • Type /help how to ... in the comments thread for any questions about PR-Agent usage.
  • Check out the documentation for more information.
  • Copy link

    PR Reviewer Guide 🔍

    Here are some key observations to aid the review process:

    ⏱️ Estimated effort to review: 4 🔵🔵🔵🔵⚪
    🧪 PR contains tests
    🔒 No security concerns identified
    ⚡ Recommended focus areas for review

    Env Schema Clarity

    The new helper and expanded environment variable schemas are comprehensive. Please ensure that additional documentation (or tests) exists to verify that feature flag transformations and validations behave as expected.

    // Helper function for boolean feature flags defined at build time
    const zBooleanFeatureFlag = z
    	.enum(["true", "false"])
    	.transform((val) => val === "true")
    	.optional();
    
    /**
    Config Consistency

    The extended site configuration and the new formatting functions (for repo, email, and store) add useful flexibility. Validate that these changes integrate well with existing usage and consider adding tests to ensure consistent URL and format generation.

    	domain: string;
    	legal: string;
    	privacy: string;
    	format: (type: Exclude<keyof SiteConfig["email"], "format">) => string;
    };
    
    // Creator information
    creator: {
    	name: string;
    	email: string;
    	url: string;
    	twitter: string;
    	twitter_handle: string;
    	domain: string;
    	fullName: string;
    	role: string;
    	avatar: string;
    	location: string;
    	bio: string;
    };
    
    // E-commerce store configuration
    store: {
    	domain: string;
    	products: {
    		bones: string;
    		muscles: string;
    		brains: string;
    		shipkit: string;
    	};
    	format: {
    		buyUrl: (product: keyof SiteConfig["store"]["products"]) => string;
    	};
    };
    Service Worker Complexity

    The updated workbox-based service worker contains a complex caching setup. Double-check that the caching strategies and module registrations are fully tested to avoid runtime issues, especially in production scenarios.

    if(!self.define){let e,a={};const s=(s,i)=>(s=new URL(s+".js",i).href,a[s]||new Promise((a=>{if("document"in self){const e=document.createElement("script");e.src=s,e.onload=a,document.head.appendChild(e)}else e=s,importScripts(s),a()})).then((()=>{let e=a[s];if(!e)throw new Error(`Module ${s} didn’t register its module`);return e})));self.define=(i,t)=>{const c=e||("document"in self?document.currentScript.src:"")||location.href;if(a[c])return;let n={};const f=e=>s(e,c),d={module:{uri:c},exports:n,require:f};a[c]=Promise.all(i.map((e=>d[e]||f(e)))).then((e=>(t(...e),n)))}}define(["./workbox-4754cb34"],(function(e){"use strict";importScripts(),self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"/_next/app-build-manifest.json",revision:"787c8cdc8a78573d0b2a932fd49e0dad"},{url:"/_next/static/FOgdNeihqPynifZxHyPHt/_buildManifest.js",revision:"1eae03f7ffa57a00116cfce907a9df8d"},{url:"/_next/static/FOgdNeihqPynifZxHyPHt/_ssgManifest.js",revision:"b6652df95db52feb4daf4eca35380933"},{url:"/_next/static/chunks/0e5ce63c-edacf61cdf2f5226.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/0e5ce63c-edacf61cdf2f5226.js.map",revision:"28c9753351f11675437058a69e0136ab"},{url:"/_next/static/chunks/1684-312b84ae1752f137.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/1684-312b84ae1752f137.js.map",revision:"2f554e8dce9edeb128600f80bef11645"},{url:"/_next/static/chunks/2989-a3ee37e6f5a95adb.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/2989-a3ee37e6f5a95adb.js.map",revision:"14b3caa33493c11a8735bdbcdfb13227"},{url:"/_next/static/chunks/3131-62c1d132e6da0440.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/3131-62c1d132e6da0440.js.map",revision:"fa58d6955e463886a35ff6cd30ff8aa9"},{url:"/_next/static/chunks/3634-36ea2887895a76f5.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/3634-36ea2887895a76f5.js.map",revision:"cfe0f1e356a3bd67ea3cfcb56f116ab4"},{url:"/_next/static/chunks/3970-68a085e3ba4034d9.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/3970-68a085e3ba4034d9.js.map",revision:"417ae32a9808bd5b512c426b30952776"},{url:"/_next/static/chunks/4277-5c9082650adcaa03.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/4277-5c9082650adcaa03.js.map",revision:"ced399c51853644fa1bd7614523d2db3"},{url:"/_next/static/chunks/4407-01ef0103850f5580.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/4407-01ef0103850f5580.js.map",revision:"bbdd6e2e0e12790b64ba34eef5f40251"},{url:"/_next/static/chunks/4626-4032c414d23b2a4b.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/4626-4032c414d23b2a4b.js.map",revision:"fa94effd30e823152d9495a93f875c69"},{url:"/_next/static/chunks/4630-e7be20a7acd08000.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/4630-e7be20a7acd08000.js.map",revision:"a9da64b1d86d0f0be4ff1535afeee66e"},{url:"/_next/static/chunks/4bd1b696-6e47fd2cb0fdf71c.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/4bd1b696-6e47fd2cb0fdf71c.js.map",revision:"a3ae34af174b5fe4853afc802bc163e6"},{url:"/_next/static/chunks/5182-a8e737bf65435b71.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/5182-a8e737bf65435b71.js.map",revision:"3167e895c27eaf460459bde8fb435514"},{url:"/_next/static/chunks/5206-891902d8342b841e.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/5206-891902d8342b841e.js.map",revision:"50356b5c1b22a45c064fd5c7125e5e59"},{url:"/_next/static/chunks/5754-8b460359bdb2ac50.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/5754-8b460359bdb2ac50.js.map",revision:"6e29386a0a692adfc75a2490fa85540d"},{url:"/_next/static/chunks/5825-5c9756a0629f5994.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/5825-5c9756a0629f5994.js.map",revision:"0d9d3981351e08c2a6adbb3be7f68c10"},{url:"/_next/static/chunks/5901-14fbd0adfc3e106f.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/5901-14fbd0adfc3e106f.js.map",revision:"8f31eff5e21b1793d9ec339ad8717706"},{url:"/_next/static/chunks/6505-f82104d724358fc5.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/6505-f82104d724358fc5.js.map",revision:"d30e01d3cd0f96aefbe3da8fc41725d5"},{url:"/_next/static/chunks/6535-ed71cd741848e388.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/6535-ed71cd741848e388.js.map",revision:"8145c9e662d4ed6c8b4b695cc05c89e0"},{url:"/_next/static/chunks/6671-79fe041a4a2acf9c.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/6671-79fe041a4a2acf9c.js.map",revision:"f6250679bac05fabd1b4f942f5b7c353"},{url:"/_next/static/chunks/6701-7044ebdf7d264bec.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/6701-7044ebdf7d264bec.js.map",revision:"af39813fce9a4d826bde929d146abf63"},{url:"/_next/static/chunks/6874-16658355a563c161.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/6874-16658355a563c161.js.map",revision:"cfc217793e2b91ad10c25c8e50620982"},{url:"/_next/static/chunks/799-226760a65161b051.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/799-226760a65161b051.js.map",revision:"37e4fd40b1389201549e6d6d53b6068d"},{url:"/_next/static/chunks/8342-0961d9e7198b2e0b.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/8342-0961d9e7198b2e0b.js.map",revision:"df0edd19172d55cdc507db2e860e317b"},{url:"/_next/static/chunks/870fdd6f-31f1c84e4baa0c59.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/870fdd6f-31f1c84e4baa0c59.js.map",revision:"3e267f321316822238826b2e335b3d99"},{url:"/_next/static/chunks/9613-2c8fd3ee3af4144a.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/9613-2c8fd3ee3af4144a.js.map",revision:"a77daa59c656bf40fc6eab8ec1e50014"},{url:"/_next/static/chunks/app/(app)/(authentication)/api/%5B...nextauth%5D/route-3df379c98edc4ab5.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/app/(app)/(authentication)/error/page-67720da4643a7544.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/app/(app)/(authentication)/error/page-67720da4643a7544.js.map",revision:"e1364b53fd97e88d47086b4537a81db3"},{url:"/_next/static/chunks/app/(app)/(authentication)/forgot-password/page-bef6fc6e7e9dcc70.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/app/(app)/(authentication)/forgot-password/page-bef6fc6e7e9dcc70.js.map",revision:"8f21f747cb2b2d34f23c4e3d01abe4c2"},{url:"/_next/static/chunks/app/(app)/(authentication)/layout-118684475904c7fd.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/app/(app)/(authentication)/layout-118684475904c7fd.js.map",revision:"52a7467c6d4e28fc46a0a7efff76230b"},{url:"/_next/static/chunks/app/(app)/(authentication)/sign-in/page-ba7acaba38b06237.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/app/(app)/(authentication)/sign-in/page-ba7acaba38b06237.js.map",revision:"5e0b8d88482d021f06b1eb98463e7da4"},{url:"/_next/static/chunks/app/(app)/(authentication)/sign-out-in/route-128f7fb28164e2b1.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/app/(app)/(authentication)/sign-out/page-b538018cc64f8e6d.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/app/(app)/(authentication)/sign-up/page-4ff13d8887b8b383.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/app/(app)/(authentication)/sign-up/page-4ff13d8887b8b383.js.map",revision:"d0f963f22736dd9f82f5d20c290f543d"},{url:"/_next/static/chunks/app/(app)/(demo)/trpc/api/%5Btrpc%5D/route-0683c66c2b77f2f7.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/app/(app)/(demo)/trpc/page-1527c5943535e8a9.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/app/(app)/(demo)/trpc/page-1527c5943535e8a9.js.map",revision:"d6c591f55ef55ccb0948fd8cc3f0ec75"},{url:"/_next/static/chunks/app/(app)/(legal)/privacy-policy/page-f9762db58f198ccd.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/app/(app)/(legal)/privacy-policy/page-f9762db58f198ccd.js.map",revision:"5aa0a12183460d24e9a2f355715da974"},{url:"/_next/static/chunks/app/(app)/(legal)/terms-of-service/page-344695d04346326a.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/app/(app)/(legal)/terms-of-service/page-344695d04346326a.js.map",revision:"97169ba079d83f6d07beea9bc6d697dc"},{url:"/_next/static/chunks/app/(app)/bones/cli/page-b9adb33abc5c1890.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/app/(app)/bones/cli/page-b9adb33abc5c1890.js.map",revision:"d408dae3ea98e1995ebf8da2cf276c4e"},{url:"/_next/static/chunks/app/(app)/bones/layout-c1c61631af110ea8.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/app/(app)/bones/layout-c1c61631af110ea8.js.map",revision:"3eeb5e683cfde8d9300592f4029b5f5d"},{url:"/_next/static/chunks/app/(app)/cli/page-5f97254d537e6fff.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/app/(app)/cli/page-5f97254d537e6fff.js.map",revision:"4e1296438416edd435fd7ee7f79688c7"},{url:"/_next/static/chunks/app/(app)/error-9a659184cc0cbaf0.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/app/(app)/error-9a659184cc0cbaf0.js.map",revision:"56a0a8f2514597cf6e51d989e201efa0"},{url:"/_next/static/chunks/app/(app)/features/page-44c73bb19418951a.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/app/(app)/features/page-44c73bb19418951a.js.map",revision:"eed5f23be0f2db2d48b9b5896aebfa62"},{url:"/_next/static/chunks/app/(app)/global-error-30452a6e38832a75.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/app/(app)/global-error-30452a6e38832a75.js.map",revision:"2457d43b3175729101f7649c55c2eaff"},{url:"/_next/static/chunks/app/(app)/layout-0dbcc69db3cabae9.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/app/(app)/layout-0dbcc69db3cabae9.js.map",revision:"cb86d13434436d88812255bd9fd9a4ca"},{url:"/_next/static/chunks/app/(app)/loading-a00f80d2f17df575.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/app/(app)/loading-a00f80d2f17df575.js.map",revision:"385886dc91136fe7ada464c27ecb6307"},{url:"/_next/static/chunks/app/(app)/not-found-aa5e173aa9f3a78f.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/app/(app)/not-found-aa5e173aa9f3a78f.js.map",revision:"0daf2c18b84dfcada8c75ccca79155ea"},{url:"/_next/static/chunks/app/(app)/og/route-7a479c7144119d23.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/app/(app)/page-2763ef7e3fa410d9.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/app/(app)/page-2763ef7e3fa410d9.js.map",revision:"dd2247c35436d315cd245e643aa23bf9"},{url:"/_next/static/chunks/app/_not-found/page-ff83d3de6ff24bbf.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/app/_not-found/page-ff83d3de6ff24bbf.js.map",revision:"b8c119cb6c34bdba1d41ad85cc62bbfa"},{url:"/_next/static/chunks/app/manifest.webmanifest/route-172b14405c1266f0.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/app/robots.txt/route-23f862231a979767.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/framework-f39aa899068fb1ec.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/framework-f39aa899068fb1ec.js.map",revision:"e274a390bd6543f4026100235b0d6f47"},{url:"/_next/static/chunks/main-11adf47dcdb9970b.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/main-11adf47dcdb9970b.js.map",revision:"3a1dd600046dd1cc0c184fe295887eee"},{url:"/_next/static/chunks/main-app-ccb4665d1e95e328.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/main-app-ccb4665d1e95e328.js.map",revision:"6fa835abfac179fd66beb0703bc4b5b1"},{url:"/_next/static/chunks/pages/_app-659e87fbe144699b.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/pages/_app-659e87fbe144699b.js.map",revision:"e6cea4db39732d470acb7af1bfee5f50"},{url:"/_next/static/chunks/pages/_error-9febd409ae4147a5.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/pages/_error-9febd409ae4147a5.js.map",revision:"270a946178c73e67e79d34e9b8415c4d"},{url:"/_next/static/chunks/polyfills-42372ed130431b0a.js",revision:"846118c33b2c0e922d7b3a7676f81f6f"},{url:"/_next/static/chunks/webpack-56de5cdd21ff7061.js",revision:"FOgdNeihqPynifZxHyPHt"},{url:"/_next/static/chunks/webpack-56de5cdd21ff7061.js.map",revision:"9743802137253b6a73e5681e3efc54e0"},{url:"/_next/static/css/0b89d97b7b1b5f5f.css",revision:"0b89d97b7b1b5f5f"},{url:"/_next/static/css/0b89d97b7b1b5f5f.css.map",revision:"3b685771676511232c28bb401f2376a6"},{url:"/_next/static/css/2f0303219e85f7e9.css",revision:"2f0303219e85f7e9"},{url:"/_next/static/css/2f0303219e85f7e9.css.map",revision:"a125704993247bbb50f8256e33ac0a55"},{url:"/_next/static/css/3c731154f09ad1b5.css",revision:"3c731154f09ad1b5"},{url:"/_next/static/css/3c731154f09ad1b5.css.map",revision:"a6e3819fa29fee687cf2483633c4c270"},{url:"/_next/static/css/625ee5c4e00f2de4.css",revision:"625ee5c4e00f2de4"},{url:"/_next/static/css/625ee5c4e00f2de4.css.map",revision:"b5c447616de62143ed2f8d92a59caedf"},{url:"/_next/static/css/76ad291d562421ea.css",revision:"76ad291d562421ea"},{url:"/_next/static/css/76ad291d562421ea.css.map",revision:"078d8fc30b87f16784cd84ce15ea1e8e"},{url:"/_next/static/css/d933ed211b25ea9c.css",revision:"d933ed211b25ea9c"},{url:"/_next/static/css/d933ed211b25ea9c.css.map",revision:"4533823242d7cf7ca5687ab83bd463cd"},{url:"/_next/static/css/e63fd14a704b26c3.css",revision:"e63fd14a704b26c3"},{url:"/_next/static/css/e63fd14a704b26c3.css.map",revision:"fa9f5c2f19d7ce1a4bf073b68f11f9ec"},{url:"/_next/static/media/0c6728822a02ae99-s.woff2",revision:"04b250be83e3b0cd6d1e834b7e353cad"},{url:"/_next/static/media/2a6f87172ac88bcc-s.p.woff2",revision:"d4259b080ecb5dfad3662741fb2a297e"},{url:"/_next/static/media/30d74baa196fe88a-s.p.woff2",revision:"ea5d1d6ec3ac0830811e2b8d98d09077"},{url:"/_next/static/media/435d7d3c1b2ff02f-s.woff2",revision:"d860f0cddb55e84fd912b9de3b8ed2dc"},{url:"/_next/static/media/4b6e90795a01444a-s.woff2",revision:"35649ad6cfb710a9d9586e0470fa98bb"},{url:"/_next/static/media/787c9522e5717ae0-s.woff2",revision:"abbc1e8521868e3297e3beaea0d0b945"},{url:"/_next/static/media/78dab6acb81895bd-s.woff2",revision:"884b73ca4a63c75c5e75c30e2c196c44"},{url:"/_next/static/media/7ab9c4cba5a6d4c2-s.p.woff2",revision:"ddb6f760d070a6be272a715ff08d6159"},{url:"/_next/static/media/7b800e61c24d781c-s.woff2",revision:"79fac5454255851d25ea2a454e6e7b28"},{url:"/_next/static/media/7cba1811e3c25a15-s.p.woff2",revision:"294acfe5ae5fedf82364d309dd284fc4"},{url:"/_next/static/media/9b35d3322406e960-s.p.woff2",revision:"d33577e73703c1de628f13781a22959b"},{url:"/_next/static/media/9e2de9191d54fcbf-s.woff2",revision:"10f749ee85133ba4dcdba81d43b3b84e"},{url:"/_next/static/media/a39bb42b2d12e696-s.woff2",revision:"2764ed2a5884dda4087a866d83ee8f78"},{url:"/_next/static/media/a46d6aaa4aa4cb50-s.woff2",revision:"9fe9033a49b7b319b2ae956abc48ff7e"},{url:"/_next/static/media/b14fc459f4b8f1a9-s.woff2",revision:"ef0b02ef0a11b2161292a6637862f1f0"},{url:"/_next/static/media/b7387a63dd068245-s.woff2",revision:"dea099b7d5a5ea45bd4367f8aeff62ab"},{url:"/_next/static/media/ba6607e4cc7979de-s.woff2",revision:"128d7b9d811c75ee37fd743a38b614a3"},{url:"/_next/static/media/c55ef04df44fb927-s.woff2",revision:"ee429571eb868a5e3d91dba5ccff1533"},{url:"/_next/static/media/d4548b25969cca89-s.woff2",revision:"7f2965a12e25430d126961b7de37aa98"},{url:"/_next/static/media/dcd0d8c94b74be53-s.woff2",revision:"b056433303b46910e775fad461b88c6d"},{url:"/_next/static/media/e1aab0933260df4d-s.woff2",revision:"207f8e9f3761dbd724063a177d906a99"},{url:"/_next/static/media/f1c328b8a9761933-s.woff2",revision:"9190b2b06f547b305c59f63f9f6197d9"},{url:"/_next/static/media/fcd73f8874eb86ea-s.woff2",revision:"12e57493446662b076994984d0229388"},{url:"/app/screenshots/screenshot-desktop.png",revision:"9cccb40f3a474002c69ec65f9b224bcd"},{url:"/app/screenshots/screenshot-mobile.png",revision:"9b4a2aa6436b072fa60082475826d858"},{url:"/app/web-app-manifest-192x192.png",revision:"b2337114ba384456e7c73c16727a1d87"},{url:"/app/web-app-manifest-512x512.png",revision:"32eb9c6a4ff722f1edc83f45f9c388c0"},{url:"/logo.png",revision:"88b142c99225c6597d7363a6ec3b13dc"},{url:"/workers/tsconfig.workers.tsbuildinfo",revision:"799878d602104fee92183195a0210802"}],{ignoreURLParametersMatching:[]}),e.cleanupOutdatedCaches(),e.registerRoute("/",new e.NetworkFirst({cacheName:"start-url",plugins:[{cacheWillUpdate:async({request:e,response:a,event:s,state:i})=>a&&"opaqueredirect"===a.type?new Response(a.body,{status:200,statusText:"OK",headers:a.headers}):a}]}),"GET"),e.registerRoute(/^https:\/\/fonts\.(?:gstatic)\.com\/.*/i,new e.CacheFirst({cacheName:"google-fonts-webfonts",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:31536e3})]}),"GET"),e.registerRoute(/^https:\/\/fonts\.(?:googleapis)\.com\/.*/i,new e.StaleWhileRevalidate({cacheName:"google-fonts-stylesheets",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:604800})]}),"GET"),e.registerRoute(/\.(?:eot|otf|ttc|ttf|woff|woff2|font.css)$/i,new e.StaleWhileRevalidate({cacheName:"static-font-assets",plugins:[new e.ExpirationPlugin({maxEntries:4,maxAgeSeconds:604800})]}),"GET"),e.registerRoute(/\.(?:jpg|jpeg|gif|png|svg|ico|webp)$/i,new e.StaleWhileRevalidate({cacheName:"static-image-assets",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\/_next\/image\?url=.+$/i,new e.StaleWhileRevalidate({cacheName:"next-image",plugins:[new e.ExpirationPlugin({maxEntries:64,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:mp3|wav|ogg)$/i,new e.CacheFirst({cacheName:"static-audio-assets",plugins:[new e.RangeRequestsPlugin,new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:mp4)$/i,new e.CacheFirst({cacheName:"static-video-assets",plugins:[new e.RangeRequestsPlugin,new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:js)$/i,new e.StaleWhileRevalidate({cacheName:"static-js-assets",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:css|less)$/i,new e.StaleWhileRevalidate({cacheName:"static-style-assets",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\/_next\/data\/.+\/.+\.json$/i,new e.StaleWhileRevalidate({cacheName:"next-data",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute(/\.(?:json|xml|csv)$/i,new e.NetworkFirst({cacheName:"static-data-assets",plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute((({url:e})=>{if(!(self.origin===e.origin))return!1;const a=e.pathname;return!a.startsWith("/api/auth/")&&!!a.startsWith("/api/")}),new e.NetworkFirst({cacheName:"apis",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:16,maxAgeSeconds:86400})]}),"GET"),e.registerRoute((({url:e})=>{if(!(self.origin===e.origin))return!1;return!e.pathname.startsWith("/api/")}),new e.NetworkFirst({cacheName:"others",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:86400})]}),"GET"),e.registerRoute((({url:e})=>!(self.origin===e.origin)),new e.NetworkFirst({cacheName:"cross-origin",networkTimeoutSeconds:10,plugins:[new e.ExpirationPlugin({maxEntries:32,maxAgeSeconds:3600})]}),"GET")}));
    //# sourceMappingURL=sw.js.map

    Copy link

    PR Code Suggestions ✨

    Explore these optional code suggestions:

    CategorySuggestion                                                                                                                                    Impact
    Possible issue
    Remove empty importScripts

    Remove or update the empty call to importScripts() to prevent unintended script
    loading behavior.

    public/sw.js [1]

    -importScripts(),self.skipWaiting(),e.clientsClaim(),
    +self.skipWaiting(),e.clientsClaim(),
    Suggestion importance[1-10]: 7

    __

    Why: The suggestion correctly identifies an unnecessary empty call to importScripts() that could lead to unintended behavior, and its removal simplifies the code without altering functionality.

    Medium

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    1 participant