From a4aa58fa6293010ede4750537328e4f69b1ab628 Mon Sep 17 00:00:00 2001 From: samuraikun Date: Fri, 22 Mar 2024 11:24:36 -0700 Subject: [PATCH] fix next.config to display uploaded images on production --- next.config.js | 5 +++++ package.json | 2 +- pnpm-lock.yaml | 60 ++++++++++++++++++++++++-------------------------- 3 files changed, 35 insertions(+), 32 deletions(-) diff --git a/next.config.js b/next.config.js index 672e76f..f6a8d8b 100644 --- a/next.config.js +++ b/next.config.js @@ -7,6 +7,11 @@ const nextConfig = { hostname: '127.0.0.1', port: '54321', pathname: '/storage/v1/object/public/**' + }, + { + protocol: 'https', + hostname: 'tabi-memo.vercel.app', + pathname: '/storage/v1/object/public/**' } ] } diff --git a/package.json b/package.json index 92651f2..e4796fc 100644 --- a/package.json +++ b/package.json @@ -85,7 +85,7 @@ "ts-jest": "^29.1.1", "ts-node": "^10.9.1", "typescript": "^5", - "vercel": "^33.5.5", + "vercel": "^33.6.1", "zod": "^3.22.4" }, "peerDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 41d2656..fbabfdf 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -203,8 +203,8 @@ devDependencies: specifier: ^5 version: 5.2.2 vercel: - specifier: ^33.5.5 - version: 33.5.5(@swc/core@1.3.96) + specifier: ^33.6.1 + version: 33.6.1(@swc/core@1.3.96) zod: specifier: ^3.22.4 version: 3.22.4 @@ -7965,8 +7965,8 @@ packages: resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} dev: true - /@vercel/build-utils@7.8.0: - resolution: {integrity: sha512-kYABisJ/Fzn8eYX27nEKnUhtFvW/8oBGGzPWVSgiN9pwtAa0IYCqFGIsg9EbWiXvBSrVuiS7++k6KU+rEtKs1w==} + /@vercel/build-utils@7.9.1: + resolution: {integrity: sha512-yqbP7d8oLAGkh5iy9/Vu1c0+s5jLFK56QHEZlkj1lY3t3OQ+7dsAi0oUP/gv8YxtUYwMDfeYSqZr/4cNhnSBsg==} dev: true /@vercel/error-utils@2.0.2: @@ -8008,11 +8008,11 @@ packages: web-vitals: 0.2.4 dev: true - /@vercel/gatsby-plugin-vercel-builder@2.0.20: - resolution: {integrity: sha512-CIc2AlXE3kSGnYfYDUgt6+Eha1kByFhhAM2TZNKFIW8AkjP4jly2YZxUoD2GpdRY+TfOlfDD5GzPjrjEa7pttw==} + /@vercel/gatsby-plugin-vercel-builder@2.0.22: + resolution: {integrity: sha512-bpbfWzNfn/7MyCDCXbFMmTqtFt+ni0ezmXQBZ5rzdEob+uTBYQg15hf+A8zr9oB66+EPaxt7So/KBjsb6s6n2A==} dependencies: '@sinclair/typebox': 0.25.24 - '@vercel/build-utils': 7.8.0 + '@vercel/build-utils': 7.9.1 '@vercel/routing-utils': 3.1.0 esbuild: 0.14.47 etag: 1.8.1 @@ -8030,8 +8030,8 @@ packages: ts-morph: 12.0.0 dev: true - /@vercel/next@4.1.5: - resolution: {integrity: sha512-7tylGnpMi5UIt+TUhGhfOcu8LYjJqZsTCjnzHMh1AMhl/tyl8xecxRKGrKxqxnQkqh2yO8tO5vg8KiFpCeGqPg==} + /@vercel/next@4.1.6: + resolution: {integrity: sha512-+U/D75RZFIe6Z9EA4kDLDZgP0hEl4ONWqFg47EtJpigWl5ulJ9YYsMD2nQZF5sq/YKbqy/7/sUDRIL0Co+3JuA==} dependencies: '@vercel/nft': 0.26.4 transitivePeerDependencies: @@ -8046,8 +8046,8 @@ packages: dependencies: '@mapbox/node-pre-gyp': 1.0.11 '@rollup/pluginutils': 4.2.1 - acorn: 8.11.2 - acorn-import-attributes: 1.9.2(acorn@8.11.2) + acorn: 8.11.3 + acorn-import-attributes: 1.9.2(acorn@8.11.3) async-sema: 3.1.1 bindings: 1.5.0 estree-walker: 2.0.2 @@ -8061,14 +8061,14 @@ packages: - supports-color dev: true - /@vercel/node@3.0.22(@swc/core@1.3.96): - resolution: {integrity: sha512-opPu9PHiQBEUEnAJa6GPUgbNz2dEi6abkDGV27wjrHErOZemRr687U+SVFoR54CQ3soKASbp/HGHggCfow0SVQ==} + /@vercel/node@3.0.24(@swc/core@1.3.96): + resolution: {integrity: sha512-2EbC6zsoaj2HH97BZYdkqHNeQ3gpcsETHXySSslkylU1uTAZU5i4c+Ze+RIinVkk7P+DVv4XzDK6xaSHvkXkGA==} dependencies: '@edge-runtime/node-utils': 2.3.0 '@edge-runtime/primitives': 4.1.0 '@edge-runtime/vm': 3.2.0 '@types/node': 14.18.33 - '@vercel/build-utils': 7.8.0 + '@vercel/build-utils': 7.9.1 '@vercel/error-utils': 2.0.2 '@vercel/nft': 0.26.4 '@vercel/static-config': 3.0.0 @@ -8106,8 +8106,8 @@ packages: - supports-color dev: true - /@vercel/remix-builder@2.1.2: - resolution: {integrity: sha512-CLIwxxcgGw3BdoDCGV2c98+BdPnmdYotzvJQ+PQbL6u+Nbo3zIAAspwVPP7RhL8OIPzDiFTW4GjeaaIRI+7dbw==} + /@vercel/remix-builder@2.1.4: + resolution: {integrity: sha512-y3RYWyxHQn5UMq8YFYj4palPs+ylcboLtqi7hqsn2P4uVFwDFCg15jKnWNYbk0XRUg+NGGtiuW4L3V9ILUxVeg==} dependencies: '@vercel/error-utils': 2.0.2 '@vercel/nft': 0.26.4 @@ -8130,11 +8130,11 @@ packages: resolution: {integrity: sha512-Gfm8HDech41vf+EPleRzgoJUnDTJerKgckMm4KX0JT860gV9XBMSOWYH7eMWHmMza104+HRCWL7wT6OlpftF2Q==} dev: true - /@vercel/static-build@2.4.2: - resolution: {integrity: sha512-TYEIzc33tsBFG3IhxmkTwonyhe0K7e951p4tvfoB6dkOQ6jRusHi5lxtJRiT+MQ8UzCmcaCrt8vEMYnakmH3qQ==} + /@vercel/static-build@2.4.4: + resolution: {integrity: sha512-2n09maqunhSAApvQ8GT2sUzGkZrb8OYm4seaMsRDA/zIkil+s4HoTCfB7WZDUetkhewBZZHvNb/b+KBQcGMY2Q==} dependencies: '@vercel/gatsby-plugin-vercel-analytics': 1.0.11 - '@vercel/gatsby-plugin-vercel-builder': 2.0.20 + '@vercel/gatsby-plugin-vercel-builder': 2.0.22 '@vercel/static-config': 3.0.0 ts-morph: 12.0.0 dev: true @@ -8615,12 +8615,12 @@ packages: acorn: 8.11.3 dev: true - /acorn-import-attributes@1.9.2(acorn@8.11.2): + /acorn-import-attributes@1.9.2(acorn@8.11.3): resolution: {integrity: sha512-O+nfJwNolEA771IYJaiLWK1UAwjNsQmZbTRqqwBYxCgVQTmpFEMvBw6LOIQV0Me339L5UMVYFyRohGnGlQDdIQ==} peerDependencies: acorn: ^8 dependencies: - acorn: 8.11.2 + acorn: 8.11.3 dev: true /acorn-jsx@5.3.2(acorn@7.4.1): @@ -9990,7 +9990,6 @@ packages: /chokidar@3.6.0: resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==} engines: {node: '>= 8.10.0'} - requiresBuild: true dependencies: anymatch: 3.1.3 braces: 3.0.2 @@ -10002,7 +10001,6 @@ packages: optionalDependencies: fsevents: 2.3.3 dev: true - optional: true /chownr@1.1.4: resolution: {integrity: sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==} @@ -19031,7 +19029,7 @@ packages: resolution: {integrity: sha512-9ZdRwbh/4gcm1JTOkp9lAkIDrtOyOxgHmY7cjuwI8L/2RTikMcVG25GsZwNAgRuap3iDw2jeq7eoqtAsz5rW3A==} dependencies: acorn: 8.11.2 - chokidar: 3.5.3 + chokidar: 3.6.0 webpack-sources: 3.2.3 webpack-virtual-modules: 0.5.0 dev: true @@ -19252,22 +19250,22 @@ packages: engines: {node: '>= 0.8'} dev: true - /vercel@33.5.5(@swc/core@1.3.96): - resolution: {integrity: sha512-MsuUq6JCPGtRhrzHQ2MVRh8bxNkhVWDaYGPk3LGSEWKbJ0dkB1ic97s5uMEBSsp6QgUB8ZaGuosPDTDGgmPxXw==} + /vercel@33.6.1(@swc/core@1.3.96): + resolution: {integrity: sha512-Y21ViEdTuXLkvz1vEvm8jvOqU58G0fntPpST8Xr2eoshNyrgntIL0VlASrDzgEW2zkZ8gutrXFbD9Y4V8Uerrw==} engines: {node: '>= 16'} hasBin: true dependencies: - '@vercel/build-utils': 7.8.0 + '@vercel/build-utils': 7.9.1 '@vercel/fun': 1.1.0 '@vercel/go': 3.0.5 '@vercel/hydrogen': 1.0.2 - '@vercel/next': 4.1.5 - '@vercel/node': 3.0.22(@swc/core@1.3.96) + '@vercel/next': 4.1.6 + '@vercel/node': 3.0.24(@swc/core@1.3.96) '@vercel/python': 4.1.1 '@vercel/redwood': 2.0.8 - '@vercel/remix-builder': 2.1.2 + '@vercel/remix-builder': 2.1.4 '@vercel/ruby': 2.0.5 - '@vercel/static-build': 2.4.2 + '@vercel/static-build': 2.4.4 chokidar: 3.3.1 transitivePeerDependencies: - '@swc/core'