Skip to content

Commit 0bce0d1

Browse files
authored
⚰️ Remove custom-rewrites.js (#460)
Remove custom-rewrites.js Fixes #459 Previously added to reduce Vercel egress from large logo images. No longer needed. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/wei/socialify/issues/459?shareId=XXXX-XXXX-XXXX-XXXX).
1 parent 5ae0499 commit 0bce0d1

File tree

5 files changed

+6
-45
lines changed

5 files changed

+6
-45
lines changed

.changeset/slow-hotels-know.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"socialify": patch
3+
---
4+
5+
Remove custom-rewrites.js which was used to handle large logo rewrites for Vercel

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ COPY package.json ./
4343
COPY --from=deps /app/node_modules ./node_modules
4444
COPY --from=builder /app/.next ./.next
4545
COPY --from=builder /app/public ./public
46-
COPY --from=builder /app/next.config.js /app/custom-rewrites.js ./
46+
COPY --from=builder /app/next.config.js ./
4747

4848
EXPOSE 3000
4949

custom-rewrites.js

-40
This file was deleted.

jest.config.ts

-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// jest.config.ts
21
import type { Config } from '@jest/types'
32
import nextJest from 'next/jest'
43
import { pathsToModuleNameMapper } from 'ts-jest'
@@ -16,7 +15,6 @@ const customJestConfig: Config.InitialOptions = {
1615
prefix: '<rootDir>/',
1716
}),
1817
moduleDirectories: ['node_modules', '<rootDir>/'],
19-
modulePathIgnorePatterns: ['<rootDir>/.vercel/'],
2018
testEnvironment: 'jest-environment-jsdom',
2119
collectCoverageFrom: ['src/**/*.{js,jsx,ts,tsx}', '!src/**/*.d.ts'],
2220
testMatch: [

next.config.js

-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
const CustomRewrites = require('./custom-rewrites')
21
const { version } = require('./package.json')
32

43
/** @type {import('next').NextConfig} */
54
const nextConfig = {
65
async rewrites() {
76
return [
8-
...CustomRewrites,
97
{
108
source: '/:_owner/:_name/image',
119
destination: '/api/image',

0 commit comments

Comments
 (0)