-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Tasks do not run when visiting with sharing url (not logged in) #8533
Comments
Hi @schettn. I was unable to reproduce the issue you described. Taking our public Docs repo as an example ( I also tried to replicate this on the URL you provided but it seems that the |
Mhm.. Do you have any idea why the This is my {
// These tasks will run in order when initializing your CodeSandbox project.
"setupTasks": [
{
"name": "Install Dependencies",
"command": "bun install"
}
],
// These tasks can be run from CodeSandbox. Running one will open a log in the app.
"tasks": {
"Start": {
"name": "Start",
"command": "bun develop",
"runAtStart": true,
"preview": {
"port": 3000
}
}
}
} |
Hi @filipelima18. I recorded a video that shows that it no longer works after I log out. I. have no idea what could be wrong. Screen.Recording.2024-08-13.at.08.31.44.mov |
Hi @schettn. I shared this with the engineering team for analysis. Thank you for your patience while we figure out what might be causing this. |
Hey! I've looked at the issue, and I believe this is happening because of some confusing behaviour in CodeSandbox itself (which I think we should fix). If you open a repo as an anonymous user, you open a different version than if you open it signed in (in your workspace). Because of this, the public version is not running the tasks. However, I think that you are looking to share a template for other people to see and potentially fork, and for that we have a different functionality in CodeSandbox that's built for that purpose that should work in your case! If you use this URL: http://codesandbox.io/p/devbox/github/getcronit/pylon-template/main?file=/src/index.ts:18,1 You will get a link back to a template that is anonymous, but stays synced with the GitHub repository. Everyone will see the same version, and they can fork it if they want to have their own version of it. We're working on revamping the import modal to make that distinction more clear. I hope this helps! |
@CompuIves This makes sense! Where did you get this URL from? I thought that I had to get the sharing link. But the sharing link is not the devbox. |
🐛 bug report
Preflight Checklist
adheres to.
to file, without success.
Description of the problem
How has this issue affected you? What are you trying to accomplish?
When accessing a CodeSandbox project through a sharing URL without being logged in, tasks that are supposed to run automatically do not execute as expected.
When accessing the same sandbox as my user, everything works fine.
To Reproduce
Link to sandbox: https://codesandbox.io/p/github/getcronit/pylon-template/main?file=%2Fsrc%2Findex.ts%3A18%2C1
Link to repo: https://github.com/getcronit/pylon-template
Maybe related: #8442
Your Environment
The text was updated successfully, but these errors were encountered: