Skip to content

Commit ca3e032

Browse files
committed
fixed next/image import
1 parent 2601696 commit ca3e032

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

app/electron/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ ipcMain.on('github', event => {
403403
const raw_code = /code=([^&]\*)/.exec(url) || null;
404404
const code = raw_code && raw_code.length > 1 ? raw_code[1] : null;
405405
const error = /\?error=(.+)\$/.exec(url);
406-
406+
407407
if (code || error) {
408408
// Close the browser if code found or error
409409
authWindow.destroy();

app/src/helperFunctions/generateCode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ const generateUnformattedCode = (
309309
${importsMapped}
310310
import Head from 'next/head'
311311
${links ? `import Link from 'next/link'` : ``}
312-
${images ? `import Image from 'next/link'` : ``}
312+
${images ? `import Image from 'next/image'` : ``}
313313
314314
const ${currComponent.name} = (props): JSX.Element => {
315315
const [value, setValue] = useState<any | undefined>("INITIAL VALUE");

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"dist-windows": "electron-builder --windows",
6969
"dist-all": "npm run prod-build && electron-builder --mac --linux --windows",
7070
"test": "concurrently \"npm run dev-server\" \"cross-env NODE_ENV=test jest --verbose \"",
71-
"server": "nodemon server/server.js"
71+
"server": "cross-env NODE_ENV=development nodemon server/server.js"
7272
},
7373
"repository": {
7474
"type": "git",

server/controllers/sessionController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ sessionController.startSession = (req, res, next) => {
5858
});
5959
}
6060
res.locals.ssid = session.cookieId;
61-
// return next();
61+
return next();
6262
});
6363
// if session exists, move onto next middleware
6464
} else {

server/server.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ const isDev = process.env.NODE_ENV === 'development';
1818
const isProd = process.env.NODE_ENV === 'production';
1919
const isTest = process.env.NODE_ENV === 'test';
2020

21+
console.log('process.env.NODE_ENV', process.env.NODE_ENV);
22+
2123
app.use(express.json({ limit: '100mb' }));
2224
app.use(express.urlencoded({ limit: '100mb', extended: true }));
2325
app.use(cookieParser());

0 commit comments

Comments
 (0)