Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
chore: clean up sw file (#32973)
Stephen Zhou110063871cf9
diff --git a/web/app/sw.ts b/web/app/sw.tsdeleted file mode 100644index e01ad21004f..00000000000--- a/web/app/sw.ts+++ /dev/null@@ -1,58 +0,0 @@-/// <reference lib="esnext" />-/// <reference lib="webworker" />--import type { PrecacheEntry, SerwistGlobalConfig } from 'serwist'-import { defaultCache } from '@serwist/turbopack/worker'-import { Serwist } from 'serwist'-import { withLeadingSlash } from 'ufo'--declare global {- // eslint-disable-next-line ts/consistent-type-definitions- interface WorkerGlobalScope extends SerwistGlobalConfig {- __SW_MANIFEST: (PrecacheEntry | string)[] | undefined- }-}--declare const self: ServiceWorkerGlobalScope--const scopePathname = new URL(self.registration.scope).pathname-const basePath = scopePathname.replace(/\/serwist\/$/, '').replace(/\/$/, '')-const offlineUrl = `${basePath}/_offline.html`--const normalizeManifestUrl = (url: string): string => {- if (url.startsWith('/serwist/'))- return url.replace(/^\/serwist\//, '/')-- return withLeadingSlash(url)-}--const manifest = self.__SW_MANIFEST?.map((entry) => {- if (typeof entry === 'string')- return normalizeManifestUrl(entry)-- return {- ...entry,- url: normalizeManifestUrl(entry.url),- }-})--const serwist = new Serwist({- precacheEntries: manifest,- skipWaiting: true,- disableDevLogs: true,- clientsClaim: true,- navigationPreload: true,- runtimeCaching: defaultCache,- fallbacks: {- entries: [- {- url: offlineUrl,- matcher({ request }) {- return request.destination === 'document'- },- },- ],- },-})--serwist.addEventListeners()