Skip to content

Commit cd27c1b

Browse files
authored
Merge pull request #2186 from sopt-makers/fix/#2178
fix: ask 전용 딥링크 파일 cloudflare 배포 설정 변경
2 parents e0b37f0 + 9295077 commit cd27c1b

File tree

4 files changed

+59
-21
lines changed

4 files changed

+59
-21
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,15 @@ jobs:
4141
- name: Build
4242
run: yarn build && yarn next export
4343

44+
- name: Prepare deployment package
45+
run: |
46+
mkdir -p deploy
47+
cp -r out/* deploy/
48+
cp -r functions deploy/
49+
4450
- uses: actions/upload-artifact@v4
4551
with:
4652
name: built-app
47-
path: out
53+
path: deploy
4854
if-no-files-found: error
4955
retention-days: 7
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
const APPLE_APP_SITE_ASSOCIATION = `{
2+
"applinks": {
3+
"apps": [],
4+
"details": [
5+
{
6+
"appID": "95YWTT5L8K.com.sopt-stamp-iOS.release",
7+
"paths": ["*"]
8+
}
9+
]
10+
}
11+
}`;
12+
13+
export const onRequest: PagesFunction = () => {
14+
return new Response(APPLE_APP_SITE_ASSOCIATION, {
15+
headers: {
16+
'Content-Type': 'application/json',
17+
},
18+
});
19+
};
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
const ASSETLINKS_JSON = `[
2+
{
3+
"relation": ["delegate_permission/common.handle_all_urls"],
4+
"target": {
5+
"namespace": "android_app",
6+
"package_name": "org.sopt.official",
7+
"sha256_cert_fingerprints": [
8+
"29:23:1F:E3:7A:FD:76:9C:58:CA:F3:E2:D9:7C:A1:69:CF:04:A8:6E:5B:8A:C6:56:6A:6F:E8:FD:D8:FF:47:43"
9+
]
10+
}
11+
}
12+
]`;
13+
14+
export const onRequest: PagesFunction = () => {
15+
return new Response(ASSETLINKS_JSON, {
16+
headers: {
17+
'Content-Type': 'application/json',
18+
},
19+
});
20+
};
Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,13 @@
1-
{\rtf1\ansi\ansicpg1252\cocoartf2822
2-
\cocoatextscaling0\cocoaplatform0{\fonttbl\f0\froman\fcharset0 Times-Roman;}
3-
{\colortbl;\red255\green255\blue255;\red0\green0\blue0;}
4-
{\*\expandedcolortbl;;\cssrgb\c0\c0\c0;}
5-
\paperw11900\paperh16840\margl1440\margr1440\vieww11520\viewh8400\viewkind0
6-
\deftab720
7-
\pard\pardeftab720\partightenfactor0
8-
9-
\f0\fs24 \cf0 \expnd0\expndtw0\kerning0
10-
\{\
11-
\'93applinks\'94: \{\
12-
\'93apps\'94: [],\
13-
\'93details\'94: [\
14-
\{\
15-
\'93appID\'94: \'9395YWTT5L8K.com.sopt-stamp-iOS.release\'94,\
16-
\'93paths\'94: [\'93*\'94]\
17-
\}\
18-
]\
19-
\}\
20-
\}}
1+
{
2+
"applinks": {
3+
"apps": [],
4+
"details": [
5+
{
6+
"appID": "95YWTT5L8K.com.sopt-stamp-iOS.release",
7+
"paths": [
8+
"*"
9+
]
10+
}
11+
]
12+
}
13+
}

0 commit comments

Comments
 (0)