diff --git a/.env b/.env
index 2ef4f3f..ea0db78 100644
--- a/.env
+++ b/.env
@@ -32,7 +32,7 @@ AUTH0_SECRET=_c0O9GkyRXkoWMQW7jNExnl6UoXN6O4oD3mg7NZ_uHVeAinCUtcTAkeQmcKXpZ4x
AUTH0_ISSUER=https://dev-wkzi658ckibr1amv.us.auth0.com
FACEBOOK_ID=
-FACEBOOK_SECRE
+FACEBOOK_SECRET=
GITHUB_ID=
GITHUB_SECRET=
diff --git a/.env.dev b/.env.dev
deleted file mode 100644
index 233e8b6..0000000
--- a/.env.dev
+++ /dev/null
@@ -1,3 +0,0 @@
-SSL_ENABLED=true
-SSL_KEY=./certificates/localhost-key.pem
-SSL_CERT=./certificates/localhost.pem
\ No newline at end of file
diff --git a/.env.development b/.env.development
new file mode 100644
index 0000000..2ed0189
--- /dev/null
+++ b/.env.development
@@ -0,0 +1,7 @@
+NODE_TLS_REJECT_UNAUTHORIZED=0
+# NODE_EXTRA_CA_CERTS=C:\\Users\\popov\\AppData\\Local\\mkcert
+SSL_ENABLED=true
+SSL_KEY=./certificates/localhost-key.pem
+SSL_CERT=./certificates/localhost.pem
+
+DATABASE_URL=mysql://root:Zelen0ku4e@192.168.0.10:3306/cart_dev
diff --git a/.vscode/launch.json b/.vscode/launch.json
index b3ca68b..6f1cd69 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -16,11 +16,14 @@
}
},
{
- "name": "Run npm nodemon",
- "command": "npm run debug ", // > _logs/debug.log
+ "name": "Run npm nodemon (DEV)",
+ "command": "npm run debug", // > _logs/debug.log
"request": "launch",
"type": "node-terminal",
"preLaunchTask": "killInspector", // <-- Add this line
+ "env": {
+ "NODE_ENV": "development"
+ }
},
{
// "type": "pwa-node",
diff --git a/components/FileUploadWithPreview .tsx b/components/FileUploadWithPreview .tsx
index f4e4633..07855cd 100644
--- a/components/FileUploadWithPreview .tsx
+++ b/components/FileUploadWithPreview .tsx
@@ -99,17 +99,17 @@ const FileUploadWithPreview = ({ name, value, prefix, onUpload, label }) => {
>
)}
-
- {
- thumbnail && (
-
-
-

+ {
+ thumbnail && (
+
+
+

+
-
- )
- }
-
+ )
+ }
+
+
);
};
diff --git a/public/content/uploads/image-1708716325394.jpg b/public/content/uploads/image-1708716325394.jpg
new file mode 100644
index 0000000..39c0b47
Binary files /dev/null and b/public/content/uploads/image-1708716325394.jpg differ
diff --git a/public/content/uploads/image-1708716328800.jpg b/public/content/uploads/image-1708716328800.jpg
new file mode 100644
index 0000000..82f2d80
Binary files /dev/null and b/public/content/uploads/image-1708716328800.jpg differ
diff --git a/public/content/uploads/image-1708716501893.jpg b/public/content/uploads/image-1708716501893.jpg
new file mode 100644
index 0000000..98c13bb
Binary files /dev/null and b/public/content/uploads/image-1708716501893.jpg differ
diff --git a/public/content/uploads/image-1708716503544.jpg b/public/content/uploads/image-1708716503544.jpg
new file mode 100644
index 0000000..f34b1ca
Binary files /dev/null and b/public/content/uploads/image-1708716503544.jpg differ
diff --git a/public/content/uploads/location-4-picture1.jpg b/public/content/uploads/location-4-picture1.jpg
index c4639be..09f904a 100644
Binary files a/public/content/uploads/location-4-picture1.jpg and b/public/content/uploads/location-4-picture1.jpg differ
diff --git a/public/content/uploads/location-4-picture2.jpg b/public/content/uploads/location-4-picture2.jpg
index 408a332..70850dc 100644
Binary files a/public/content/uploads/location-4-picture2.jpg and b/public/content/uploads/location-4-picture2.jpg differ
diff --git a/public/content/uploads/thumb/location-1-picture1.jpg b/public/content/uploads/thumb/location-1-picture1.jpg
index a246a1a..80840bb 100644
Binary files a/public/content/uploads/thumb/location-1-picture1.jpg and b/public/content/uploads/thumb/location-1-picture1.jpg differ
diff --git a/server.js b/server.js
index 4492696..03ef709 100644
--- a/server.js
+++ b/server.js
@@ -63,6 +63,7 @@ app
const options = {
key: fs.readFileSync(process.env.SSL_KEY),
cert: fs.readFileSync(process.env.SSL_CERT),
+ secureProtocol: 'TLSv1_2_method', // Example: Force TLS 1.2
};
https.createServer(options, server).listen(PORT);
}