Is there a problem using the workbench from a production site?

Toriyama 276 Reputation points
2022-04-04T10:14:38.003+00:00

I have developed for sharepoint framework and because I don't have a development environment (SPO for DEV) sometimes I use the workbench in production.
I wanted to know if this can have an impact on the application.

Thanks

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
8,608 questions
SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,543 questions
0 comments No comments
{count} votes

Accepted answer
  1. Rob Windsor 1,926 Reputation points
    2022-04-18T12:35:12.433+00:00

    Whether the use of the workbench in a production site will have negative effects on the performance of the site depends on what the web part you are testing does. For example, if you're just getting some a few dozen list items from a couple lists and rendering it out on the page, then you will be fine. But if the web part gets tons of data from multiple sources to build some sort of visualization, it could have some impact. Similarly, if the web part makes changes to the site configuration, that could have an impact (particularly if there's a bug in the code you're testing).

    I highly recommend that you consider using a developer tenant to test your web parts instead. You can get a free developer tenant by joining the Microsoft 365 Developer Program. I've been using developer tenants for all my SharePoint, Teams, and Power Platform development for years.

    193847-image.png

    I hope this helps.

    2 people found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 27,031 Reputation points Microsoft Vendor
    2022-04-05T02:43:33.163+00:00

    Hi @Toriyama ,
    To use client-side web parts on modern SharePoint server-side pages, you need to deploy and register the web part with SharePoint. Workbench is tremendously useful to test and validate your web parts against the service. You can refer to following document to deploy your web part.
    https://learn.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/build-a-hello-world-web-part


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    1 person found this answer helpful.