Skip to content

Commit 9cb9d46

Browse files
authored
Merge pull request #481 from adopted-ember-addons/root-url-github
fix root-url for github pages
2 parents 9914359 + 9a4417e commit 9cb9d46

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/workflows/gh-pages.yml

+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ jobs:
2626
- name: Build
2727
run: pnpm run build
2828
working-directory: test-app
29+
env:
30+
GITHUB_PAGES: "true"
2931
- name: Deploy
3032
uses: peaceiris/actions-gh-pages@v4
3133
if: github.ref == 'refs/heads/main'

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![npm version](https://badge.fury.io/js/ember-infinity.svg)](http://badge.fury.io/js/ember-infinity)
55
[![Ember Observer Score](http://emberobserver.com/badges/ember-infinity.svg)](http://emberobserver.com/addons/ember-infinity)
66

7-
Demo: [ember-adopted-addons.github.io/ember-infinity/](https://ember-adopted-addons.github.io/ember-infinity/)
7+
Demo: [adopted-ember-addons.github.io/ember-infinity/](https://adopted-ember-addons.github.io/ember-infinity/)
88

99
Simple, flexible infinite scrolling for Ember CLI Apps. Works out of the box
1010
with the [Kaminari Gem](https://github.com/amatsuda/kaminari.git).
@@ -41,7 +41,7 @@ We test against `ember-source >= 3.28`. Try out `v2.0.0`. If it doesn't work or
4141

4242
2. **infinity-loader component**
4343

44-
3. **Route Mixin** (deprecated and removed as of 1.1). If you still want to upgrade, but keep your Route mixins, install `1.0.2`. See old docs (here)[https://github.com/ember-adopted-addons/ember-infinity/blob/2e0cb02e5845a97cad8783893cd7f4ddcf5dc5a7/README.md]
44+
3. **Route Mixin** (deprecated and removed as of 1.1). If you still want to upgrade, but keep your Route mixins, install `1.0.2`. See old docs (here)[https://github.com/adopted-ember-addons/ember-infinity/blob/2e0cb02e5845a97cad8783893cd7f4ddcf5dc5a7/README.md]
4545

4646
### Service Component Approach
4747

test-app/config/environment.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = function (environment) {
44
const ENV = {
55
modulePrefix: 'test-app',
66
environment,
7-
rootURL: '/',
7+
rootURL: process.env.GITHUB_PAGES ? '/ember-infinity/' : '/',
88
locationType: 'history',
99
EmberENV: {
1010
EXTEND_PROTOTYPES: false,

0 commit comments

Comments
 (0)