Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid generating useless symlink #302

Closed

Conversation

refactornator
Copy link

@refactornator refactornator commented Sep 26, 2024

Fixes #297

This codebase is new to me, so please let me know if I missed anything glaringly obvious.

I tested manually as well and everything checked out 🫡

Copy link

vercel bot commented Sep 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
next-video-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 26, 2024 3:35pm

}
} catch (error) {
// Videos directory doesn't exist or is not accessible, which we treat the same as having no files
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey Liam, thanks for contributing!

this works when there initially are no video files but if I keep the Next.js app running and then add a video file to the folder there wouldn't be a symlink when refreshing the page.

the symlink is needed temporarily before the asset is uploaded / processed to show the raw local video file in the player in the webpage. only in dev mode.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey Wesley, that makes sense! Yeah, sorry I missed that. But, it looks like this might not be a valid issue, so I'll just close this.

I've been looking for projects to contribute to, so if you have any suggestions, let me know!

@luwes
Copy link
Collaborator

luwes commented Sep 26, 2024

thinking through this today maybe it's not really a valid issue. I'll ask the reporter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Avoid generating useless symlink
2 participants