Skip to content

Commit

Permalink
Deployed.
Browse files Browse the repository at this point in the history
  • Loading branch information
LutherTS committed Jul 23, 2024
1 parent 00e5888 commit e03fd57
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ RUN apt-get update -qq && \

# Install node modules
COPY --link package-lock.json package.json ./
RUN npm ci --include=dev
RUN npm ci --include=dev --legacy-peer-deps

# Copy application code
COPY --link . .
Expand All @@ -31,7 +31,7 @@ COPY --link . .
RUN npm run build

# Remove development dependencies
RUN npm prune --omit=dev
RUN npm prune --omit=dev --legacy-peer-deps


# Final stage for app image
Expand Down
12 changes: 7 additions & 5 deletions app/(pages)/carousel-part-cleaned/page.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import * as fs from "node:fs";
// import * as fs from "node:fs";

import Carousel from "./carousel";

const directory = "./public/images7";
const files = fs.readdirSync(directory);
let images: string[];

// const directory = "./public/images7";
// const files = fs.readdirSync(directory);

const directoryPath = directory.split("/").slice(2).join("/");
let images = files.map((filePath) => `/${directoryPath}/${filePath}`);
// const directoryPath = directory.split("/").slice(2).join("/");
// images = files.map((filePath) => `/${directoryPath}/${filePath}`);

/* Sorting numerically. All files need to have a number format, and should only be of an image format, with no folders inside. Since this is a personal and internal project, I'm not going to handle errors for now. */
// const imagesForSorting: [string, number][] = images.map((e) => [
Expand Down
7 changes: 7 additions & 0 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,10 @@ export default function RootLayout({
</html>
);
}

/* Notes
npm install @flydotio/dockerfile --save-dev --legacy-peer-deps
npx @flydotio/dockerfile --legacy-peer-deps
To deal with Next.js 15 RC React 19 RC --force issues.
https://community.fly.io/t/cant-launch-a-next-js-15-rc-react-19-rc-app/20915
*/
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,8 @@
"prettier-plugin-tailwindcss": "^0.6.5",
"tailwindcss": "^3.4.1",
"typescript": "^5"
},
"dockerfile": {
"legacyPeerDeps": true
}
}
}

0 comments on commit e03fd57

Please sign in to comment.