Skip to content

Commit d9ced23

Browse files
committed
use supabase to store the images
1 parent 75eafc8 commit d9ced23

File tree

5 files changed

+13
-4
lines changed

5 files changed

+13
-4
lines changed

next.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
const nextConfig = {
33
reactStrictMode: true,
44
webpack(config) {
5+
config.module.rules.push({
6+
test: /supabase\/.*/,
7+
use: 'ignore-loader',
8+
});
59
config.module.rules.push({
610
test: /\.svg$/i,
711
issuer: /\.[jt]sx?$/,

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
"eslint-plugin-prettier": "^4.0.0",
5858
"eslint-plugin-react": "^7.29.4",
5959
"eslint-plugin-react-hooks": "^4.3.0",
60+
"ignore-loader": "^0.1.2",
6061
"jest": "^28.1.1",
6162
"jest-image-snapshot": "^5.1.0",
6263
"jest-puppeteer-docker": "https://github.com/bertuz/jest-puppeteer-docker.git#specify-docker-build",

pages/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
// todo migrate to app router once this has been fixed https://github.com/emotion-js/emotion/issues/2928#issuecomment-1552963155
2-
import { getImageData } from './api/galleryPhotos';
3-
42
import colors from '../assets/styles/colors';
53

64
import breakPoints, { MAX_MOBILE_WIDTH_PX } from '../assets/styles/breakPoints';
@@ -1012,7 +1010,7 @@ export async function getServerSideProps() {
10121010
};
10131011
}
10141012

1015-
const supabaseUrl = process.env.SUPABASE_NEXT_PUBLIC_SUPABASE_URL || ' ';
1013+
const supabaseUrl = process.env.SUPABASE_NEXT_PUBLIC_SUPABASE_URL || '';
10161014
const supabaseAnonKey =
10171015
process.env.SUPABASE_NEXT_PUBLIC_SUPABASE_ANON_KEY || '';
10181016

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"**/*.tsx"
3737
],
3838
"exclude": [
39-
"node_modules"
39+
"node_modules",
40+
"supabase"
4041
]
4142
}

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5106,6 +5106,11 @@ ieee754@^1.1.13, ieee754@^1.2.1:
51065106
resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352"
51075107
integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==
51085108

5109+
ignore-loader@^0.1.2:
5110+
version "0.1.2"
5111+
resolved "https://registry.yarnpkg.com/ignore-loader/-/ignore-loader-0.1.2.tgz#d81f240376d0ba4f0d778972c3ad25874117a463"
5112+
integrity sha512-yOJQEKrNwoYqrWLS4DcnzM7SEQhRKis5mB+LdKKh4cPmGYlLPR0ozRzHV5jmEk2IxptqJNQA5Cc0gw8Fj12bXA==
5113+
51095114
ignore@^5.2.0, ignore@^5.2.4:
51105115
version "5.2.4"
51115116
resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.2.4.tgz#a291c0c6178ff1b960befe47fcdec301674a6324"

0 commit comments

Comments
 (0)