Skip to content

Commit 3f7dc93

Browse files
Update src/content/docs/workers/tutorials/using-prisma-postgres-with-workers/index.mdx
Co-authored-by: Thomas Gauvin <[email protected]>
1 parent 6e020d4 commit 3f7dc93

File tree

1 file changed

+8
-0
lines changed
  • src/content/docs/workers/tutorials/using-prisma-postgres-with-workers

1 file changed

+8
-0
lines changed

src/content/docs/workers/tutorials/using-prisma-postgres-with-workers/index.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,14 @@ export interface Env {
161161

162162
export default {
163163
async fetch(request, env, ctx): Promise<Response> {
164+
const path = (new URL(request.url)).pathname;
165+
if(path === "/favicon.ico") return new Response('Resource not found', {
166+
status: 404,
167+
headers: {
168+
'Content-Type': 'text/plain'
169+
}
170+
});
171+
164172
const prisma = new PrismaClient({
165173
datasourceUrl: env.DATABASE_URL,
166174
}).$extends(withAccelerate());

0 commit comments

Comments
 (0)