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

Running the package on IIS #9

Merged
merged 1 commit into from
May 1, 2024
Merged

Running the package on IIS #9

merged 1 commit into from
May 1, 2024

Conversation

rickbutterfield
Copy link
Contributor

Sets an environment variable of PLAYWRIGHT_BROWSERS_PATH to allow the package to run correctly on IIS (see #7)

@rickbutterfield rickbutterfield requested a review from tcmorris May 1, 2024 09:35
@rickbutterfield rickbutterfield merged commit 8719ff2 into main May 1, 2024
3 checks passed
@rickbutterfield rickbutterfield deleted the feature/iis-fix branch May 2, 2024 08:08
@@ -13,7 +13,10 @@ internal class SustainabilityComposer : IComposer
{
public void Compose(IUmbracoBuilder builder)
{
var exitCode = Microsoft.Playwright.Program.Main(new[] { "install" });
string value = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
Environment.SetEnvironmentVariable("PLAYWRIGHT_BROWSERS_PATH", $"{value}\\ms-playwright");

Choose a reason for hiding this comment

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

Will this code work on non-Windows operating systems?

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.

3 participants