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

Ability to change template #864

Closed
fzaninotto opened this issue May 28, 2018 · 6 comments
Closed

Ability to change template #864

fzaninotto opened this issue May 28, 2018 · 6 comments

Comments

@fzaninotto
Copy link

Currently, whether I create a sandbox from the ui, from a GitHub repo, or from the CLI, a template is chosen for me (e.g. create-react-app, parcel). But the detection is sometimes wrong (e.g. creating a sandbox from https://github.com/marmelab/react-admin/tree/master/examples/simple detects it as "create-react-app", which is wrong), or we may want to change our minds.

So the ability to switch to another template would really be great.

@bbgrabbag
Copy link

This is the one feature preventing our organization from using CodeSandbox as our primary teaching assessment tool. Students submit their assignments (in the form of a Github URL) via our LMS. Unfortunately, since the auto template is not always accurate (we do more than just create-react-app), it makes it difficult for us to test their code and provide feedback.

Being able to switch templates within a project would instantly resolve our bottleneck. Thank you!

@jthegedus
Copy link

jthegedus commented Oct 30, 2018

I have experienced this issue too, even after adding a sandbox.config.json with

{
  "template": "parcel"
}

The "Project Info" tab still shows the auto-detected template, not the explicitly defined one.

sandbox - importantly, this code works offline.

@CompuIves
Copy link
Member

CompuIves commented Oct 31, 2018

This one is coming in today! You can set your template in sandbox.config.json and if it changes we update all settings.

We don't change automatically detected templates, only the templates explicitly defined in the config.

@billiegoose
Copy link

This is awesome @CompuIves ! I successfully converted my React template project to a Vanilla template project and started using the alias package.json field #467 and now have a monorepo-style project!

@CompuIves
Copy link
Member

Coool! I'll close this one now 😄

@jyjin
Copy link

jyjin commented Aug 12, 2021

This is awesome @CompuIves ! I successfully converted my React template project to a Vanilla template project and started using the alias package.json field #467 and now have a monorepo-style project!

Hi~ , I have the same problem with alias, Could you show me the demo which uses alias in codeSandBox?

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

No branches or pull requests

6 participants