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

[No QA] Update webpack so the apple association file is served from .well-known directory #6430

Merged
merged 1 commit into from
Nov 23, 2021

Conversation

mountiny
Copy link
Contributor

Details

This fixes the path for the apple-app-association file in webpack, since the webpack build did not serve the file from .well-known directory. Tests on staging shown the apple validator tool is not able to locate the file #6385 (comment).

If the to key is omitted from the option, the default is the root directory so the file is not served from .well-known/ directory as it should https://webpack.js.org/plugins/copy-webpack-plugin/#tos2019.

Fixed Issues

Related to #6385

Tests

Run npm run desktop-build locally and confirm no errors happen.

QA

None

Tested On

  • Web
  • Mobile Web
  • Desktop
  • iOS
  • Android

Screenshots

Web

Mobile Web

Desktop

iOS

Android

@mountiny mountiny requested a review from a team as a code owner November 23, 2021 17:14
@mountiny mountiny self-assigned this Nov 23, 2021
@github-actions
Copy link
Contributor

⚠️ ⚠️ Heads up! This pull request has the CP Staging label. ⚠️ ⚠️
Merging it will cause it to be immediately deployed to staging, even if the open StagingDeployCash deploy checklist is locked.

@MelvinBot MelvinBot requested review from Dal-Papa and removed request for a team November 23, 2021 17:14
@@ -51,7 +51,7 @@ const webpackConfig = {
{from: 'assets/css', to: 'css'},
{from: 'node_modules/react-pdf/dist/esm/Page/AnnotationLayer.css', to: 'css/AnnotationLayer.css'},
{from: 'assets/images/shadow.png', to: 'images/shadow.png'},
{from: '.well-known/apple-app-site-association'},
{from: '.well-known/apple-app-site-association', to: '.well-known/apple-app-site-association'},
Copy link
Contributor

Choose a reason for hiding this comment

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

NAB, probably we can just copy the whole .well-known directory

{from: '.well-known'},

but what you have is also fine.

@marcaaron marcaaron merged commit 10d8613 into main Nov 23, 2021
@marcaaron marcaaron deleted the vit-updateWebpackAppleAssociationFileOutput branch November 23, 2021 18:22
@OSBotify
Copy link
Contributor

🚀 Deployed to staging by @marcaaron in version: 1.1.16-11 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@OSBotify
Copy link
Contributor

OSBotify commented Dec 6, 2021

🚀 Deployed to production by @roryabraham in version: 1.1.17-7 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

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