Skip to content
This repository was archived by the owner on Jan 27, 2025. It is now read-only.

Commit 12b66a6

Browse files
author
John Richard Chipps-Harding
authored
Typo and better path handling (#14)
1 parent 83b8736 commit 12b66a6

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This is a small [Next.js](https://nextjs.org/) fullstack app that allows you to
1414
First, clone the repository and install the dependencies:
1515

1616
```bash
17-
npm run i
17+
npm i
1818
```
1919

2020
Then, run the development server:

src/config/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
import { join } from "path";
2+
13
import { CSSProperties } from "react";
24

35
// Basic scrollable column of images
4-
5-
export const ROOT_DIRECTORY = `${process.cwd()}/samples`; // Can be absolute or relative to the project root
6+
export const ROOT_DIRECTORY = join(process.cwd(), "samples"); // Can be absolute or relative to the project root
67
export const RECURSIVE = true;
78
export const MAX_IMAGES = 8;
89
export const POLL_INTERVAL = 5 * 1000; // 5 seconds

src/config/phantom-screen.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
import { CSSProperties } from "react";
1+
import { join } from "path";
22

3-
// Sample configuration for the `stairs/wall screen` at Phantom
3+
import { CSSProperties } from "react";
44

5-
export const ROOT_DIRECTORY = `${process.cwd()}/samples`; // Can be absolute or relative to the project root
5+
// Basic scrollable column of images
6+
export const ROOT_DIRECTORY = join(process.cwd(), "samples");
67
export const RECURSIVE = true;
78
export const MAX_IMAGES = 8;
89
export const POLL_INTERVAL = 5 * 1000; // 5 seconds

0 commit comments

Comments
 (0)